forked from stephenh/ts-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
23 lines (23 loc) · 822 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** @type {import('@jest/types').Config.ProjectConfig} */
module.exports = {
transform: {
'^.+\\.ts$': [
'ts-jest',
{
// Note: We are limited to one single TS config even though we have
// vastly different TS configs for the sources and the tests. So we'll
// make do with a **very** loose config file. Any type checking should
// be done with `yarn tsc:check`.
tsconfig: 'tsconfig.json',
}
],
},
resolver: 'jest-ts-webcompat-resolver',
moduleFileExtensions: ['js', 'ts'],
testMatch: ['<rootDir>/integration/**/*-test.ts', '<rootDir>/tests/**/*-test.ts'],
testPathIgnorePatterns: [
'<rootDir>/integration/simple-esmodule-interop/*',
'<rootDir>/integration/batching-with-context-esModuleInterop/*'
],
testEnvironment: "node"
};