n8n/packages/cli/jest.config.js
2022-03-27 12:12:28 -04:00

18 lines
420 B
JavaScript

module.exports = {
verbose: true,
transform: {
'^.+\\.ts?$': 'ts-jest',
},
testURL: 'http://localhost/',
testRegex: '(/__tests__/.*|(\\.|/)(test-api))\\.ts$',
testPathIgnorePatterns: ['/dist/', '/node_modules/'],
moduleFileExtensions: ['ts', 'js', 'json'],
globals: {
'ts-jest': {
isolatedModules: true,
},
},
globalTeardown: '<rootDir>/test/teardown.ts',
setupFiles: ['<rootDir>/test/setup.ts'],
};