@rspack/test-tools 2.0.0-rc.1 → 2.0.0-rc.2

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.
@@ -9,9 +9,7 @@ const node_path_1 = __importDefault(require("node:path"));
9
9
  const rimraf_1 = require("rimraf");
10
10
  const createLazyTestEnv_1 = __importDefault(require("../helper/legacy/createLazyTestEnv"));
11
11
  const tester_1 = require("./tester");
12
- const DEFAULT_MAX_CONCURRENT = process.env.WASM
13
- ? 1
14
- : Number(process.env.DEFAULT_MAX_CONCURRENT) || 5;
12
+ const DEFAULT_MAX_CONCURRENT = Number(process.env.DEFAULT_MAX_CONCURRENT) || 5;
15
13
  class BasicCaseCreator {
16
14
  constructor(_options) {
17
15
  this._options = _options;
@@ -37,9 +35,7 @@ class BasicCaseCreator {
37
35
  }
38
36
  const run = this.shouldRun(name);
39
37
  const tester = this.createTester(name, src, dist, temp, testConfig, options);
40
- const concurrent = process.env.WASM
41
- ? 1
42
- : testConfig.concurrent || options.concurrent;
38
+ const concurrent = testConfig.concurrent || options.concurrent;
43
39
  if (options.describe) {
44
40
  if (run) {
45
41
  if (concurrent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/test-tools",
3
- "version": "2.0.0-rc.1",
3
+ "version": "2.0.0-rc.2",
4
4
  "license": "MIT",
5
5
  "description": "Test tools for rspack",
6
6
  "main": "dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "fs-extra": "^11.3.4",
47
47
  "iconv-lite": "^0.7.2",
48
48
  "javascript-stringify": "^2.1.0",
49
- "jest-diff": "^30.2.0",
49
+ "jest-diff": "^30.3.0",
50
50
  "jest-snapshot": "29.7.0",
51
51
  "jsdom": "^26.1.0",
52
52
  "memfs": "4.53.0",
@@ -67,7 +67,7 @@
67
67
  "@types/jsdom": "^21.1.7",
68
68
  "typescript": "^6.0.2",
69
69
  "wast-loader": "^1.14.1",
70
- "@rspack/core": "2.0.0-rc.1"
70
+ "@rspack/core": "2.0.0-rc.2"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@rspack/core": ">=1.0.0"