@rspack-canary/test-tools 1.7.0-canary-dcc2f8c9-20251223064055 → 1.7.0-canary-e20de023-20251223174329

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.
@@ -60,9 +60,12 @@ ${tooMuch.map(item => `${explain(item)}`).join("\n\n")}`);
60
60
  return diff.join("\n\n");
61
61
  };
62
62
  module.exports = async function checkArrayExpectation(testDirectory, object, kind, filename, upperCaseKind, options, done) {
63
- done = typeof done === "function" ? done : error => {
64
- throw error;
65
- };
63
+ done =
64
+ typeof done === "function"
65
+ ? done
66
+ : error => {
67
+ throw error;
68
+ };
66
69
  let array = object[`${kind}s`];
67
70
  if (Array.isArray(array) && kind === "warning") {
68
71
  array = array.filter(item => !/from Terser/.test(item));
@@ -121,14 +124,14 @@ module.exports = async function checkArrayExpectation(testDirectory, object, kin
121
124
  for (let j = 0; j < expected.length; j++) {
122
125
  if (!usedExpected[j]) {
123
126
  unused.push(Array.isArray(expected[j])
124
- ? expected[j].map(explain).join(' | ')
127
+ ? expected[j].map(explain).join(" | ")
125
128
  : explain(expected[j]));
126
129
  }
127
130
  }
128
131
  if (unused.length > 0) {
129
132
  done(new Error(`The following expected ${kind}s were not matched:\n${unused
130
133
  .map(u => ` ${u}`)
131
- .join('\n')}`));
134
+ .join("\n")}`));
132
135
  return true;
133
136
  }
134
137
  }
@@ -107,7 +107,7 @@ if (${options.type === "module"}) {
107
107
  set onmessage(value) {
108
108
  if (this._onmessage)
109
109
  this.worker.off("message", this._onmessage);
110
- this.worker.on("message", (this._onmessage = (data) => {
110
+ this.worker.on("message", (this._onmessage = data => {
111
111
  value({
112
112
  data
113
113
  });
@@ -111,6 +111,6 @@ module.exports = (globalTimeout = 2000, nameSuffix = "") => {
111
111
  },
112
112
  /** @type {import('@rstest/core').Expect} */
113
113
  expect,
114
- rstest,
114
+ rstest
115
115
  };
116
116
  };
@@ -7,7 +7,9 @@
7
7
  let interception = undefined;
8
8
  const originalWarn = console.warn;
9
9
  console.warn = (message, ...args) => {
10
- if (interception && typeof message === 'string' && message.includes('[Rspack Deprecation]')) {
10
+ if (interception &&
11
+ typeof message === "string" &&
12
+ message.includes("[Rspack Deprecation]")) {
11
13
  interception.set(message, {
12
14
  message,
13
15
  stack: new Error(message).stack
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/test-tools",
3
- "version": "1.7.0-canary-dcc2f8c9-20251223064055",
3
+ "version": "1.7.0-canary-e20de023-20251223174329",
4
4
  "license": "MIT",
5
5
  "description": "Test tools for rspack",
6
6
  "main": "dist/index.js",
@@ -65,7 +65,7 @@
65
65
  "@types/jsdom": "^21.1.7",
66
66
  "typescript": "^5.9.3",
67
67
  "wast-loader": "^1.14.1",
68
- "@rspack/core": "npm:@rspack-canary/core@1.7.0-canary-dcc2f8c9-20251223064055"
68
+ "@rspack/core": "npm:@rspack-canary/core@1.7.0-canary-e20de023-20251223174329"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "@rspack/core": ">=1.0.0"