5fb3d75412
Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
36 lines
949 B
TypeScript
36 lines
949 B
TypeScript
/**
|
|
* For a detailed explanation regarding each configuration property, visit:
|
|
* https://jestjs.io/docs/configuration
|
|
*/
|
|
|
|
import type { Config } from 'jest';
|
|
|
|
const config: Config = {
|
|
testTimeout: 100_000,
|
|
coverageProvider: 'v8',
|
|
moduleDirectories: ['node_modules', 'src'],
|
|
preset: 'ts-jest/presets/js-with-ts-esm',
|
|
setupFilesAfterEnv: ['<rootDir>/test/jest-setup.ts'],
|
|
testEnvironment: 'node',
|
|
testRegex: ['.*\\.test\\.ts$'],
|
|
transformIgnorePatterns: ['node_modules/(?!cli-testing-library)'],
|
|
|
|
// Tell Jest to ignore the specific duplicate package.json files
|
|
// that are causing Haste module naming collisions
|
|
modulePathIgnorePatterns: [
|
|
'<rootDir>/test/e2e/prompt-module/data/commitlint_18/',
|
|
'<rootDir>/test/e2e/prompt-module/data/commitlint_19/'
|
|
],
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': [
|
|
'ts-jest',
|
|
{
|
|
diagnostics: false,
|
|
useESM: true
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
export default config;
|