2023-01-04 20:03:47 +01:00
|
|
|
/** @type {import('jest').Config} */
|
|
|
|
module.exports = {
|
2023-07-30 15:41:09 +02:00
|
|
|
testMatch: [
|
|
|
|
'<rootDir>/compat-tests/fixtures/*/*.compat-test.ts',
|
|
|
|
'<rootDir>/compat-tests/*.compat-test.ts',
|
|
|
|
],
|
2023-01-04 20:03:47 +01:00
|
|
|
moduleNameMapper: {},
|
|
|
|
// setupFiles: ['./theatre/shared/src/setupTestEnv.ts'],
|
|
|
|
automock: false,
|
|
|
|
// transform: {
|
|
|
|
// '^.+\\.tsx?$': [
|
|
|
|
// 'esbuild-jest',
|
|
|
|
// {
|
|
|
|
// sourcemap: true,
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// '^.+\\.js$': [
|
|
|
|
// 'esbuild-jest',
|
|
|
|
// {
|
|
|
|
// sourcemap: true,
|
|
|
|
// },
|
|
|
|
// ],
|
|
|
|
// },
|
|
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
2023-07-30 15:41:09 +02:00
|
|
|
// these tests take a long time to run, because each of them either runs a full build of a package,
|
|
|
|
// or tests the build on a browser using playwright
|
|
|
|
testTimeout: 1000 * 60 * 2,
|
2023-07-30 19:10:58 +02:00
|
|
|
transform: {
|
|
|
|
'^.+\\.tsx?$': [
|
|
|
|
'jest-esbuild',
|
|
|
|
{
|
|
|
|
sourcemap: true,
|
|
|
|
supported: {
|
|
|
|
'dynamic-import': false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'^.+\\.js$': [
|
|
|
|
'jest-esbuild',
|
|
|
|
{
|
|
|
|
sourcemap: true,
|
|
|
|
supported: {
|
|
|
|
'dynamic-import': false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-01-04 20:03:47 +01:00
|
|
|
}
|