@rspack/test-tools 1.3.10 → 1.3.12
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/test/creator.js +10 -2
- package/package.json +10 -12
package/dist/test/creator.js
CHANGED
|
@@ -257,8 +257,16 @@ class BasicCaseCreator {
|
|
|
257
257
|
}
|
|
258
258
|
checkSkipped(src, testConfig) {
|
|
259
259
|
const filterPath = node_path_1.default.join(src, "test.filter.js");
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
// no test.filter.js, should not skip
|
|
261
|
+
if (!node_fs_1.default.existsSync(filterPath)) {
|
|
262
|
+
return false;
|
|
263
|
+
}
|
|
264
|
+
// test.filter.js exists, skip if it returns false|string|array
|
|
265
|
+
const filtered = require(filterPath)(this._options, testConfig);
|
|
266
|
+
if (typeof filtered === "string" || Array.isArray(filtered)) {
|
|
267
|
+
return true;
|
|
268
|
+
}
|
|
269
|
+
return !filtered;
|
|
262
270
|
}
|
|
263
271
|
createTester(name, src, dist, temp, testConfig) {
|
|
264
272
|
return new tester_1.Tester({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/test-tools",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Test tools for rspack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,15 +46,15 @@
|
|
|
46
46
|
"jest-diff": "^29.7.0",
|
|
47
47
|
"jest-snapshot": "29.7.0",
|
|
48
48
|
"jsdom": "^26.1.0",
|
|
49
|
-
"memfs": "4.17.
|
|
49
|
+
"memfs": "4.17.2",
|
|
50
50
|
"path-serializer": "0.4.0",
|
|
51
51
|
"pretty-format": "29.7.0",
|
|
52
52
|
"rimraf": "^5.0.10",
|
|
53
53
|
"source-map": "^0.7.4",
|
|
54
54
|
"terser-webpack-plugin": "^5.3.14",
|
|
55
|
-
"webpack": "5.99.
|
|
55
|
+
"webpack": "5.99.9",
|
|
56
56
|
"webpack-merge": "6.0.1",
|
|
57
|
-
"webpack-sources": "3.
|
|
57
|
+
"webpack-sources": "3.3.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@rspack/plugin-preact-refresh": "1.1.2",
|
|
@@ -65,10 +65,8 @@
|
|
|
65
65
|
"@types/babel__traverse": "7.20.7",
|
|
66
66
|
"@types/fs-extra": "11.0.4",
|
|
67
67
|
"@types/jsdom": "^21.1.7",
|
|
68
|
-
"@types/react": "^19.1.
|
|
69
|
-
"@types/react-dom": "^19.1.
|
|
70
|
-
"@types/webpack": "5.28.5",
|
|
71
|
-
"@types/webpack-sources": "3.2.3",
|
|
68
|
+
"@types/react": "^19.1.4",
|
|
69
|
+
"@types/react-dom": "^19.1.5",
|
|
72
70
|
"@webdiscus/pug-loader": "^2.11.1",
|
|
73
71
|
"acorn": "^8.14.1",
|
|
74
72
|
"babel-loader": "^10.0.0",
|
|
@@ -92,13 +90,13 @@
|
|
|
92
90
|
"source-map": "^0.7.4",
|
|
93
91
|
"source-map-loader": "^5.0.0",
|
|
94
92
|
"style-loader": "^4.0.0",
|
|
95
|
-
"terser": "5.39.
|
|
93
|
+
"terser": "5.39.2",
|
|
96
94
|
"typescript": "^5.8.3",
|
|
97
95
|
"wast-loader": "^1.14.1",
|
|
98
96
|
"worker-rspack-loader": "^3.1.2",
|
|
99
|
-
"@rspack/test-tools": "1.3.
|
|
100
|
-
"@rspack/
|
|
101
|
-
"@rspack/
|
|
97
|
+
"@rspack/test-tools": "1.3.12",
|
|
98
|
+
"@rspack/cli": "1.3.12",
|
|
99
|
+
"@rspack/core": "1.3.12"
|
|
102
100
|
},
|
|
103
101
|
"peerDependencies": {
|
|
104
102
|
"@rspack/core": ">=1.0.0"
|