theatre/jest.compat-tests.config.js
Aria Minaei 024b1896c6 Small tweaks to the compat tests
Note: These are cherry-picked from the internal docker branch.
2023-08-01 17:47:17 +02:00

49 lines
1.2 KiB
JavaScript

/** @type {import('jest').Config} */
module.exports = {
testMatch: [
'<rootDir>/compat-tests/fixtures/*/*.compat-test.ts',
'<rootDir>/compat-tests/*.compat-test.ts',
],
moduleNameMapper: {},
modulePathIgnorePatterns: ['<rootDir>/compat-tests/verdaccio'],
// 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'],
// 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,
transform: {
'^.+\\.tsx?$': [
'jest-esbuild',
{
sourcemap: true,
supported: {
'dynamic-import': false,
},
},
],
'^.+\\.js$': [
'jest-esbuild',
{
sourcemap: true,
supported: {
'dynamic-import': false,
},
},
],
},
}