@rspack-canary/test-tools 1.6.0-canary-bf68c45d-20251028142310 → 1.6.0-canary-34fbd33e-20251029061020
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.
- package/dist/case/normal.js +1 -1
- package/dist/runner/node/index.js +2 -8
- package/package.json +6 -6
package/dist/case/normal.js
CHANGED
|
@@ -92,7 +92,7 @@ function defaultOptions(context, compilerOptions, mode) {
|
|
|
92
92
|
context: NORMAL_CASES_ROOT,
|
|
93
93
|
entry: `./${node_path_1.default.relative(NORMAL_CASES_ROOT, context.getSource())}/`,
|
|
94
94
|
target: compilerOptions?.target || "async-node",
|
|
95
|
-
devtool: compilerOptions?.devtool,
|
|
95
|
+
devtool: mode === "development" ? false : compilerOptions?.devtool,
|
|
96
96
|
mode: compilerOptions?.mode || mode || "none",
|
|
97
97
|
optimization: compilerOptions?.mode
|
|
98
98
|
? {
|
|
@@ -373,14 +373,8 @@ class NodeRunner {
|
|
|
373
373
|
this.preExecute(code, file);
|
|
374
374
|
this.log(`run mode: ${this._options.runInNewContext ? "new context" : "this context"}`);
|
|
375
375
|
const fn = this._options.runInNewContext
|
|
376
|
-
? node_vm_1.default.runInNewContext(code, this.globalContext
|
|
377
|
-
|
|
378
|
-
lineOffset: 1
|
|
379
|
-
})
|
|
380
|
-
: node_vm_1.default.runInThisContext(code, {
|
|
381
|
-
filename: file.path,
|
|
382
|
-
lineOffset: 1
|
|
383
|
-
});
|
|
376
|
+
? node_vm_1.default.runInNewContext(code, this.globalContext)
|
|
377
|
+
: node_vm_1.default.runInThisContext(code);
|
|
384
378
|
fn.call(this._options.testConfig.nonEsmThis
|
|
385
379
|
? this._options.testConfig.nonEsmThis(modulePath)
|
|
386
380
|
: m.exports, ...argValues);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/test-tools",
|
|
3
|
-
"version": "1.6.0-canary-
|
|
3
|
+
"version": "1.6.0-canary-34fbd33e-20251029061020",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"directory": "packages/rspack-test-tools"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@babel/generator": "7.28.
|
|
40
|
-
"@babel/parser": "7.28.
|
|
41
|
-
"@babel/traverse": "7.28.
|
|
42
|
-
"@babel/types": "7.28.
|
|
39
|
+
"@babel/generator": "7.28.5",
|
|
40
|
+
"@babel/parser": "7.28.5",
|
|
41
|
+
"@babel/traverse": "7.28.5",
|
|
42
|
+
"@babel/types": "7.28.5",
|
|
43
43
|
"@jest/reporters": "29.7.0",
|
|
44
44
|
"cross-env": "^10.1.0",
|
|
45
45
|
"filenamify": "4.3.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@types/jsdom": "^21.1.7",
|
|
69
69
|
"typescript": "^5.9.3",
|
|
70
70
|
"wast-loader": "^1.14.1",
|
|
71
|
-
"@rspack/core": "npm:@rspack-canary/core@1.6.0-canary-
|
|
71
|
+
"@rspack/core": "npm:@rspack-canary/core@1.6.0-canary-34fbd33e-20251029061020"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@rspack/core": ">=1.0.0"
|