-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjest.config.cjs
More file actions
33 lines (32 loc) · 943 Bytes
/
jest.config.cjs
File metadata and controls
33 lines (32 loc) · 943 Bytes
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
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
module.exports = {
setupFilesAfterEnv: ['<rootDir>/src/test/jest.setup.ts'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
testMatch: ['<rootDir>/src/**/?(*.)spec.(ts|js)?(x)'],
testPathIgnorePatterns: [
'/node_modules/',
'<rootDir>/dist/',
'<rootDir>/dev/',
'<rootDir>/src/test/',
'<rootDir>/malloy-samples/',
],
transform: {
'^.+\\.tsx?$': ['babel-jest'],
},
testTimeout: 100000,
verbose: true,
testEnvironment: 'node',
collectCoverage: true,
coverageReporters: ['lcov', 'html'],
collectCoverageFrom: ['<rootDir>/src/**/*.(ts|tsx)', '!**/*.stylex.ts'],
preset: 'ts-jest',
moduleNameMapper: {
uuid: require.resolve('uuid'),
'\\.svg\\?react$': '<rootDir>/src/test/SvgMock.tsx',
},
};