-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathjest.config.ts
More file actions
29 lines (25 loc) · 830 Bytes
/
jest.config.ts
File metadata and controls
29 lines (25 loc) · 830 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
/*!
* Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT
*/
/** @type {import('ts-jest').JestConfigWithTsJest} */
const transformCodeInPackages = []
module.exports = {
preset: 'ts-jest',
testMatch: ['**/src/**/?(*.)+(spec|test).ts'],
coverageReporters: ['cobertura', 'html', 'text'],
collectCoverageFrom: ['src/**/*.ts'],
coveragePathIgnorePatterns: ['^.*/scripts/.*$', '^.*/schema/.*$', '^.*/tests/.*$', 'interface.ts'],
transformIgnorePatterns: [`<rootDir>/node_modules/(?!${transformCodeInPackages.join('|')}).+\\.js$`],
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': [
'babel-jest',
{
presets: ['@babel/preset-env'],
plugins: [['@babel/transform-runtime']],
},
],
},
clearMocks: true,
}