mirror of
https://github.com/alexgo-io/stacks.js.git
synced 2026-06-15 18:48:18 +08:00
21 lines
566 B
JavaScript
21 lines
566 B
JavaScript
const path = require('path');
|
|
module.exports = {
|
|
rootDir: __dirname,
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
coverageDirectory: './coverage/',
|
|
collectCoverage: true,
|
|
moduleNameMapper: require('jest-module-name-mapper').default(path.resolve(__dirname, 'tsconfig.json')),
|
|
globals: {
|
|
'ts-jest': {
|
|
tsconfig: path.resolve(__dirname, 'tsconfig.json'),
|
|
diagnostics: {
|
|
ignoreCodes: ['TS151001'],
|
|
},
|
|
},
|
|
},
|
|
moduleFileExtensions: ['js', 'ts', 'd.ts'],
|
|
setupFilesAfterEnv: ['./tests/setup.js'],
|
|
testTimeout: 10000,
|
|
};
|