Add test infrastructure with coverage and DB test skipping
- Create @reviq/test-helpers package with shared test utilities - Add describeE2E helper that auto-prefixes test names with [e2e] - Support SKIP_DB_TESTS=1 to skip database-dependent tests - Add unix socket support for TEST_DATABASE_URL - Add root commands: test:unit, test:all, test:cov, test:unit:cov - Configure bunfig.toml to exclude dist/ from coverage reports - Clean up tsconfig.json files to remove redundant settings Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
18
packages/testing/test-helpers/src/index.ts
Normal file
18
packages/testing/test-helpers/src/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export { describeE2E, SKIP_DB_TESTS } from "./skip-db-tests.js";
|
||||
export {
|
||||
DEFAULT_TEST_AAGUID,
|
||||
KNOWN_AAGUIDS,
|
||||
TEST_RP,
|
||||
} from "./test-constants.js";
|
||||
export {
|
||||
createTestDb,
|
||||
createTestUser,
|
||||
destroySharedDb,
|
||||
destroyTestDb,
|
||||
getSharedDb,
|
||||
getTestDatabaseUrl,
|
||||
initTestDb,
|
||||
runMigrations,
|
||||
truncateAllTables,
|
||||
} from "./test-db.js";
|
||||
export { withTestTransaction } from "./test-transaction.js";
|
||||
Reference in New Issue
Block a user