@rspack/test-tools 1.5.0-rc.0 → 1.5.1

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.
@@ -19,7 +19,7 @@ const { getSerializers } = require(node_path_1.default.join(node_path_1.default.
19
19
  * Check if 2 strings or buffer are equal
20
20
  */
21
21
  const isEqual = (a, b) => {
22
- // @ts-ignore: TypeScript gives error if we pass string to buffer.equals
22
+ // @ts-expect-error: TypeScript gives error if we pass string to buffer.equals
23
23
  return Buffer.isBuffer(a) ? a.equals(b) : a === b;
24
24
  };
25
25
  /**
@@ -6,7 +6,7 @@ const to_match_file_snapshot_1 = require("./expect/to-match-file-snapshot");
6
6
  const serializers_1 = require("./serializers");
7
7
  expect.extend({
8
8
  // CHANGE: new test matcher for `rspack-test-tools`
9
- // @ts-ignore
9
+ // @ts-expect-error
10
10
  toMatchFileSnapshot: to_match_file_snapshot_1.toMatchFileSnapshot,
11
11
  toBeTypeOf: to_be_typeof_1.toBeTypeOf,
12
12
  toEndWith: to_end_with_1.toEndWith
@@ -101,7 +101,6 @@ class NormalProcessor extends basic_1.BasicProcessor {
101
101
  rules: []
102
102
  },
103
103
  plugins: (compilerOptions?.plugins || [])
104
- // @ts-ignore
105
104
  .concat(testConfig.plugins || [])
106
105
  .concat(function () {
107
106
  this.hooks.compilation.tap("TestCasesTest", compilation => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/test-tools",
3
- "version": "1.5.0-rc.0",
3
+ "version": "1.5.1",
4
4
  "license": "MIT",
5
5
  "description": "Test tools for rspack",
6
6
  "main": "dist/index.js",
@@ -97,10 +97,10 @@
97
97
  "wast-loader": "^1.14.1",
98
98
  "worker-rspack-loader": "^3.1.2",
99
99
  "exports-loader": "^5.0.0",
100
- "@rspack/cli": "1.5.0-rc.0",
101
- "@rspack/core": "1.5.0-rc.0",
100
+ "@rspack/cli": "1.5.1",
101
+ "@rspack/core": "1.5.1",
102
102
  "@rspack/binding-testing": "1.4.1",
103
- "@rspack/test-tools": "1.5.0-rc.0"
103
+ "@rspack/test-tools": "1.5.1"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "@rspack/core": ">=1.0.0"