@zohodesk/unit-testing-framework 0.0.3-experimental → 0.0.4-experimental
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -37,9 +37,20 @@ function getDefaultConfig(projectRoot) {
|
|
|
37
37
|
// --------------- Environment ---------------
|
|
38
38
|
testEnvironment: 'node',
|
|
39
39
|
// --------------- Transform ---------------
|
|
40
|
-
//
|
|
41
|
-
//
|
|
42
|
-
|
|
40
|
+
// Use babel-jest to transform ESM (import/export) and JSX in
|
|
41
|
+
// consumer source & test files. Consumer's own babel config
|
|
42
|
+
// (babel.config.js / .babelrc) will be picked up automatically.
|
|
43
|
+
// If none exists, the fallback preset-env handles plain ESM → CJS.
|
|
44
|
+
transform: {
|
|
45
|
+
'\\.[jt]sx?$': ['babel-jest', {
|
|
46
|
+
presets: [['@babel/preset-env', {
|
|
47
|
+
targets: {
|
|
48
|
+
node: 'current'
|
|
49
|
+
}
|
|
50
|
+
}]]
|
|
51
|
+
}]
|
|
52
|
+
},
|
|
53
|
+
transformIgnorePatterns: ['/node_modules/'],
|
|
43
54
|
// --------------- Coverage ---------------
|
|
44
55
|
collectCoverage: false,
|
|
45
56
|
coverageDirectory: _path.default.resolve(projectRoot, 'coverage'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/unit-testing-framework",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4-experimental",
|
|
4
4
|
"description": "A modular Jest-based unit testing framework",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -22,8 +22,11 @@
|
|
|
22
22
|
"author": "",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@babel/core": "7.29.0",
|
|
26
|
+
"@babel/preset-env": "7.29.0",
|
|
25
27
|
"@jest/core": "30.2.0",
|
|
26
28
|
"@jest/types": "30.2.0",
|
|
29
|
+
"babel-jest": "30.2.0",
|
|
27
30
|
"jest-environment-node": "30.2.0"
|
|
28
31
|
},
|
|
29
32
|
"peerDependencies": {
|