swc/packages/core/jest.config.js
Donny/강동윤 f960d52364
refactor(bindings): Make @swc/core a subpackage (#8625)
**Description:**

This is for consistency and future extensions.
2024-05-18 09:23:06 +09:00

31 lines
1.0 KiB
JavaScript

module.exports = {
projects: [
/* Noram unit tests node-swc runs */
{
displayName: "unit tests",
testMatch: [
"**/__tests__/**/*.[jt]s?(x)",
"**/__tests__/**/*.m[jt]s?(x)",
"**/__tests__/**/?(*.)+(spec|test).[jt]s?(x)",
],
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 */
!!process.env.DISABLE_PLUGIN_E2E_TESTS
? undefined
: {
displayName: "e2e tests",
testMatch: ["**/e2e/**/?(*.)+(spec|test).[jt]s?(x)"],
},
].filter(Boolean),
};