@rspack/test-tools 1.3.10 → 1.3.11

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.
@@ -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
- return (node_fs_1.default.existsSync(filterPath) &&
261
- !require(filterPath)(this._options, testConfig));
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.10",
3
+ "version": "1.3.11",
4
4
  "license": "MIT",
5
5
  "description": "Test tools for rspack",
6
6
  "main": "dist/index.js",
@@ -65,8 +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.3",
69
- "@types/react-dom": "^19.1.3",
68
+ "@types/react": "^19.1.4",
69
+ "@types/react-dom": "^19.1.5",
70
70
  "@types/webpack": "5.28.5",
71
71
  "@types/webpack-sources": "3.2.3",
72
72
  "@webdiscus/pug-loader": "^2.11.1",
@@ -92,13 +92,13 @@
92
92
  "source-map": "^0.7.4",
93
93
  "source-map-loader": "^5.0.0",
94
94
  "style-loader": "^4.0.0",
95
- "terser": "5.39.0",
95
+ "terser": "5.39.1",
96
96
  "typescript": "^5.8.3",
97
97
  "wast-loader": "^1.14.1",
98
98
  "worker-rspack-loader": "^3.1.2",
99
- "@rspack/test-tools": "1.3.10",
100
- "@rspack/core": "1.3.10",
101
- "@rspack/cli": "1.3.10"
99
+ "@rspack/cli": "1.3.11",
100
+ "@rspack/core": "1.3.11",
101
+ "@rspack/test-tools": "1.3.11"
102
102
  },
103
103
  "peerDependencies": {
104
104
  "@rspack/core": ">=1.0.0"