2022-07-13 09:39:08 +03:00
|
|
|
module.exports = {
|
|
|
|
projects: [
|
|
|
|
/* Noram unit tests node-swc runs */
|
|
|
|
{
|
|
|
|
displayName: "unit tests",
|
|
|
|
testMatch: [
|
|
|
|
"**/__tests__/**/*.[jt]s?(x)",
|
|
|
|
"**/__tests__/**/*.m[jt]s?(x)",
|
2022-07-14 10:38:54 +03:00
|
|
|
"**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)",
|
2022-07-13 09:39:08 +03:00
|
|
|
],
|
|
|
|
transform: {},
|
|
|
|
// transform: {
|
|
|
|
// "^.+\\.jsx?$": "babel-jest",
|
|
|
|
// "^.+\\.mjs$": "babel-jest",
|
|
|
|
// },
|
|
|
|
testPathIgnorePatterns: [
|
|
|
|
"<rootDir>/build/",
|
|
|
|
"<rootDir>/node_modules/",
|
|
|
|
],
|
|
|
|
moduleFileExtensions: ["js", "jsx", "mjs"],
|
|
|
|
},
|
|
|
|
/* Integration tests requires a fixture setup to run tests, like plugins */
|
2022-07-14 10:38:54 +03:00
|
|
|
!!process.env.DISABLE_PLUGIN_E2E_TESTS
|
|
|
|
? undefined
|
|
|
|
: {
|
|
|
|
displayName: "e2e tests",
|
|
|
|
testMatch: ["**/e2e/**/?(*.)+(spec|test).[jt]s?(x)"],
|
|
|
|
},
|
|
|
|
].filter(Boolean),
|
2022-07-13 09:39:08 +03:00
|
|
|
};
|