Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
const { createDefaultPreset } = require('ts-jest');

const tsJestTransformCfg = createDefaultPreset().transform;

/** @type {import("jest").Config} **/
module.exports = {
testEnvironment: 'node',
transform: {
...tsJestTransformCfg,
// Disable ts-jest type-checking diagnostics so pre-existing type errors in
// unrelated source files do not block the test runner.
// Type safety is still enforced separately by `pnpm run build` (tsc).
'^.+\\.tsx?$': ['ts-jest', { diagnostics: false }],
},
setupFiles: ['<rootDir>/tests/jest.setup.ts'],
// Allow enough time for MongoMemoryServer to start (and download the binary
Expand Down
Loading