-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathjest.config.simple.ts
More file actions
35 lines (30 loc) · 1.08 KB
/
jest.config.simple.ts
File metadata and controls
35 lines (30 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* Simplified Jest config for use with vscode-jest-runner extension.
* The main jest.config.ts uses `projects` which the extension doesn't support.
* This config is used by jestrunner.configPath mapping in .vscode/settings.json.
*/
import type {Config} from 'jest';
process.env.TZ = 'America/Los_Angeles';
const transformIgnoreModules = ['@motherduck/wasm-client'].join('|');
const config: Config = {
preset: 'ts-jest',
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
setupFilesAfterEnv: ['<rootDir>/test/jest.setup.ts', 'jest-expect-message'],
testMatch: ['**/?(*.)spec.(ts|js)?(x)'],
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/out/'],
transformIgnorePatterns: [`node_modules/(?!(${transformIgnoreModules})/)`],
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', {tsconfig: '<rootDir>/test/tsconfig.json'}],
'^.+\\.(js|jsx)$': [
'babel-jest',
{
'presets': ['@babel/preset-env'],
'plugins': [['@babel/transform-runtime']],
},
],
},
testTimeout: 100000,
verbose: true,
testEnvironment: 'node',
};
module.exports = config;