mirror of
https://github.com/hanzoai/mongodb-memory-server.git
synced 2026-09-24 17:00:24 +00:00
27 lines
816 B
JavaScript
27 lines
816 B
JavaScript
module.exports = {
|
|
preset: 'ts-jest',
|
|
transform: {
|
|
'\\.ts$': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: '<rootDir>/tsconfig.json',
|
|
diagnostics: true,
|
|
},
|
|
],
|
|
},
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
|
|
roots: ['<rootDir>/src'],
|
|
testPathIgnorePatterns: ['/node_modules/', '/lib/'],
|
|
testMatch: ['**/__tests__/**/*.test.(ts|js)'],
|
|
testEnvironment: 'node',
|
|
collectCoverageFrom: [
|
|
'<rootDir>/src/**/*.ts', // include all files, even files that have no tests yet (or are never called)
|
|
'!<rootDir>/src/util/postinstallHelper.ts', // exclude this file, because it is only made for postInstall, not tests
|
|
],
|
|
globalSetup: '<rootDir>/src/__tests__/testUtils/globalSetup.ts',
|
|
snapshotFormat: {
|
|
escapeString: true,
|
|
printBasicPrototype: true,
|
|
},
|
|
};
|