@rstest/core 0.9.0 → 0.9.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.
Files changed (54) hide show
  1. package/LICENSE.md +2 -2
  2. package/dist/{0~89.js → 0~8843.js} +49 -33
  3. package/dist/{0~1472.js → 0~browserLoader.js} +5 -5
  4. package/dist/{0~7882.js → 0~browser~1.js} +46 -47
  5. package/dist/{0~8426.js → 0~checkThresholds.js} +2 -2
  6. package/dist/{0~130.js → 0~console.js} +15 -17
  7. package/dist/0~dist.js +1014 -0
  8. package/dist/{0~7583.js → 0~esm.js} +68 -70
  9. package/dist/{0~4403.js → 0~generate.js} +5 -6
  10. package/dist/{0~4809.js → 0~happyDom.js} +2 -2
  11. package/dist/{0~3346.js → 0~interop.js} +0 -1
  12. package/dist/{0~62.js → 0~jsdom.js} +2 -2
  13. package/dist/{0~262.js → 0~lib.js} +4 -1
  14. package/dist/{0~9634.js → 0~listTests.js} +14 -23
  15. package/dist/{0~6923.js → 0~loadEsModule.js} +16 -8
  16. package/dist/{0~5835.js → 0~loadModule.js} +27 -14
  17. package/dist/{0~6907.js → 0~magic-string.es.js} +2 -1
  18. package/dist/{0~2255.js → 0~plugin.js} +2 -4
  19. package/dist/{0~6588.js → 0~restart.js} +7 -11
  20. package/dist/{0~2173.js → 0~runTests.js} +27 -19
  21. package/dist/{487.js → 1255.js} +22 -15
  22. package/dist/{6151.js → 1949.js} +3027 -36
  23. package/dist/{6973.js → 255.js} +7 -8
  24. package/dist/{9131.js → 3145.js} +220 -486
  25. package/dist/{1157.js → 4411.js} +35 -35
  26. package/dist/{4484.js → 5040.js} +1 -2
  27. package/dist/{3160.js → 6830.js} +396 -93
  28. package/dist/7011.js +1 -1
  29. package/dist/{1294.js → 7552.js} +28 -22
  30. package/dist/{5734.js → 7704.js} +6 -5
  31. package/dist/browser-runtime/{2~907.js → 2~magic-string.es.js} +18 -11
  32. package/dist/browser-runtime/{389.js → 723.js} +3059 -80
  33. package/dist/browser-runtime/{389.js.LICENSE.txt → 723.js.LICENSE.txt} +0 -22
  34. package/dist/browser-runtime/index.js +1 -1
  35. package/dist/browser-runtime/rslib-runtime.js +11 -3
  36. package/dist/browser.js +9 -7
  37. package/dist/globalSetupWorker.js +4 -13
  38. package/dist/index.d.ts +3 -0
  39. package/dist/index.js +2 -2
  40. package/dist/mockRuntimeCode.js +15 -9
  41. package/dist/rslib-runtime.js +5 -8
  42. package/dist/worker.js +23 -46
  43. package/package.json +12 -10
  44. package/dist/0~1240.js +0 -951
  45. package/dist/0~1981.js +0 -2
  46. package/dist/3160.js.LICENSE.txt +0 -21
  47. package/dist/4881.js +0 -2
  48. package/dist/6198.js +0 -2
  49. package/dist/721.js +0 -8
  50. /package/dist/{0~7583.js.LICENSE.txt → 0~esm.js.LICENSE.txt} +0 -0
  51. /package/dist/{0~3062.js → 0~utils.js} +0 -0
  52. /package/dist/{6151.js.LICENSE.txt → 1949.js.LICENSE.txt} +0 -0
  53. /package/dist/{4597.js → 1983.js} +0 -0
  54. /package/dist/{1294.js.LICENSE.txt → 7552.js.LICENSE.txt} +0 -0
@@ -135,28 +135,6 @@
135
135
  * MIT Licensed
136
136
  */
137
137
 
138
- /*!
139
- * Copyright 2017 Vercel, Inc.
140
- *
141
- * This file is derived from Vercel's detect-agent:
142
- * https://github.com/vercel/vercel/tree/main/packages/detect-agent
143
- *
144
- * Licensed under the Apache License, Version 2.0 (the "License");
145
- * you may not use this file except in compliance with the License.
146
- * You may obtain a copy of the License at
147
- *
148
- * http://www.apache.org/licenses/LICENSE-2.0
149
- *
150
- * Unless required by applicable law or agreed to in writing, software
151
- * distributed under the License is distributed on an "AS IS" BASIS,
152
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
153
- * See the License for the specific language governing permissions and
154
- * limitations under the License.
155
- *
156
- * Modifications in this derived work:
157
- * - Removed async determine logic, kept only env detection.
158
- */
159
-
160
138
  /*!
161
139
  * The buffer module from node.js, for the browser.
162
140
  *
@@ -1 +1 @@
1
- export { afterAll, afterEach, assert, beforeAll, beforeEach, createRstestRuntime, describe, expect, globalApis, it, onTestFailed, onTestFinished, rs, rstest, setRealTimers, test } from "./389.js";
1
+ export { afterAll, afterEach, assert, beforeAll, beforeEach, createRstestRuntime, describe, expect, globalApis, it, onTestFailed, onTestFinished, rs, rstest, setRealTimers, test } from "./723.js";
@@ -4,15 +4,20 @@ function __webpack_require__(moduleId) {
4
4
  var cachedModule = __webpack_module_cache__[moduleId];
5
5
  if (void 0 !== cachedModule) return cachedModule.exports;
6
6
  var module = __webpack_module_cache__[moduleId] = {
7
- id: moduleId,
8
- loaded: false,
9
7
  exports: {}
10
8
  };
11
9
  __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
12
- module.loaded = true;
13
10
  return module.exports;
14
11
  }
15
12
  __webpack_require__.m = __webpack_modules__;
13
+ (()=>{
14
+ __webpack_require__.d = (exports, definition)=>{
15
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
16
+ enumerable: true,
17
+ get: definition[key]
18
+ });
19
+ };
20
+ })();
16
21
  (()=>{
17
22
  __webpack_require__.add = function registerModules(modules) {
18
23
  Object.assign(__webpack_require__.m, modules);
@@ -28,6 +33,9 @@ __webpack_require__.m = __webpack_modules__;
28
33
  }
29
34
  })();
30
35
  })();
36
+ (()=>{
37
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
38
+ })();
31
39
  (()=>{
32
40
  __webpack_require__.r = (exports)=>{
33
41
  if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
package/dist/browser.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import "node:module";
2
- export { TEMP_RSTEST_OUTPUT_DIR, getTestEntries, globalApis } from "./1157.js";
3
- export { afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, onTestFailed, onTestFinished, rs, rsbuild, rstest, test } from "./4484.js";
4
- export { color, isDebug, logger, serializableConfig } from "./3160.js";
5
- export { createRstestRuntime } from "./6151.js";
6
- export { getSetupFiles } from "./6973.js";
7
- export { loadCoverageProvider } from "./5734.js";
8
- export { setRealTimers } from "./1294.js";
2
+ import * as __rspack_external__rsbuild_core_1b356efc from "@rsbuild/core";
3
+ export { TEMP_RSTEST_OUTPUT_DIR, getTestEntries, globalApis } from "./4411.js";
4
+ export { afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, onTestFailed, onTestFinished, rs, rstest, test } from "./5040.js";
5
+ export { color, isDebug, logger, serializableConfig } from "./6830.js";
6
+ export { createRstestRuntime } from "./1949.js";
7
+ export { getSetupFiles } from "./255.js";
8
+ export { loadCoverageProvider } from "./7704.js";
9
+ export { setRealTimers } from "./7552.js";
10
+ export { __rspack_external__rsbuild_core_1b356efc as rsbuild };
@@ -1,8 +1,8 @@
1
1
  import "node:module";
2
2
  import { __webpack_require__ } from "./rslib-runtime.js";
3
- import "./487.js";
4
- import { color } from "./3160.js";
5
- import { formatTestError } from "./1294.js";
3
+ import "./1255.js";
4
+ import { color } from "./6830.js";
5
+ import { formatTestError } from "./7552.js";
6
6
  const source_map_support = __webpack_require__("../../node_modules/.pnpm/source-map-support@0.5.21/node_modules/source-map-support/source-map-support.js");
7
7
  let teardownCallbacks = [];
8
8
  let initialEnv = {};
@@ -39,16 +39,7 @@ const runGlobalSetup = async (data)=>{
39
39
  for (const entry of data.entries){
40
40
  const { distPath, testPath } = entry;
41
41
  const setupCodeContent = data.assetFiles[distPath];
42
- const { loadModule } = data.outputModule ? await import("./0~6923.js").then((mod)=>({
43
- EsmMode: mod.loadEsModule_EsmMode,
44
- asModule: mod.asModule,
45
- clearModuleCache: mod.clearModuleCache,
46
- loadModule: mod.loadModule
47
- })) : await import("./0~5835.js").then((mod)=>({
48
- cacheableLoadModule: mod.cacheableLoadModule,
49
- clearModuleCache: mod.clearModuleCache,
50
- loadModule: mod.loadModule
51
- }));
42
+ const { loadModule } = data.outputModule ? await import("./0~loadEsModule.js") : await import("./0~loadModule.js");
52
43
  const module = await loadModule({
53
44
  codeContent: setupCodeContent,
54
45
  distPath,
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import type { config } from 'chai';
3
3
  import { LoadConfigOptions } from '@rsbuild/core';
4
4
  import type { RsbuildConfig } from '@rsbuild/core';
5
5
  import type { RsbuildPlugin } from '@rsbuild/core';
6
+ import { Rspack } from '@rsbuild/core';
6
7
  import type { Writable } from 'node:stream';
7
8
 
8
9
  /**
@@ -2511,6 +2512,8 @@ export declare const rs: RstestUtilities;
2511
2512
 
2512
2513
  export { RsbuildPlugin }
2513
2514
 
2515
+ export { Rspack }
2516
+
2514
2517
  export declare type Rstest = RunnerAPI & {
2515
2518
  expect: Expect;
2516
2519
  assert: typeof assert_2;
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import "node:module";
2
- export { afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, onTestFailed, onTestFinished, rs, rstest, test } from "./4484.js";
3
- export { createRstest, defineConfig, defineProject, initCli, loadConfig, mergeProjectConfig, mergeRstestConfig, runCLI } from "./9131.js";
2
+ export { afterAll, afterEach, assert, beforeAll, beforeEach, describe, expect, it, onTestFailed, onTestFinished, rs, rstest, test } from "./5040.js";
3
+ export { createRstest, defineConfig, defineProject, initCli, loadConfig, mergeProjectConfig, mergeRstestConfig, runCLI } from "./3145.js";
@@ -20,6 +20,8 @@ __webpack_require__ = new Proxy(function(...args) {
20
20
  });
21
21
  __webpack_require__.rstest_original_modules = {};
22
22
  __webpack_require__.rstest_original_module_factories = {};
23
+ const hasOwn = (target, property)=>Object.hasOwn(target, property);
24
+ const isPromise = (value)=>value instanceof Promise;
23
25
  __webpack_require__.rstest_unmock = (id)=>{
24
26
  const originalModuleFactory = __webpack_require__.rstest_original_module_factories[id];
25
27
  if (originalModuleFactory) __webpack_modules__[id] = originalModuleFactory;
@@ -27,9 +29,8 @@ __webpack_require__.rstest_unmock = (id)=>{
27
29
  };
28
30
  __webpack_require__.rstest_do_unmock = __webpack_require__.rstest_unmock;
29
31
  __webpack_require__.rstest_require_actual = __webpack_require__.rstest_import_actual = (id)=>{
30
- const originalModule = __webpack_require__.rstest_original_modules[id];
31
- if (originalModule) return originalModule;
32
- if (id in __webpack_require__.rstest_original_module_factories) {
32
+ if (hasOwn(__webpack_require__.rstest_original_modules, id)) return __webpack_require__.rstest_original_modules[id];
33
+ if (hasOwn(__webpack_require__.rstest_original_module_factories, id)) {
33
34
  const mod = __webpack_require__.rstest_original_module_factories[id];
34
35
  const moduleInstance = {
35
36
  exports: {}
@@ -43,12 +44,13 @@ __webpack_require__.rstest_require_actual = __webpack_require__.rstest_import_ac
43
44
  const getMockImplementation = (mockType = 'mock')=>{
44
45
  const isMockRequire = 'mockRequire' === mockType || 'doMockRequire' === mockType;
45
46
  return (id, modFactory)=>{
46
- let requiredModule = __webpack_module_cache__[id]?.exports;
47
- const wasAlreadyLoaded = !!requiredModule;
48
- if (requiredModule) {
49
- __webpack_require__.rstest_original_modules[id] = requiredModule;
50
- __webpack_require__.rstest_original_module_factories[id] = __webpack_modules__[id];
51
- } else __webpack_require__.rstest_original_module_factories[id] = __webpack_modules__[id];
47
+ const hasCachedModule = hasOwn(__webpack_module_cache__, id);
48
+ let requiredModule = hasCachedModule ? __webpack_module_cache__[id].exports : void 0;
49
+ const wasAlreadyLoaded = hasCachedModule;
50
+ const hasSavedOriginalModule = hasOwn(__webpack_require__.rstest_original_modules, id);
51
+ const hasSavedOriginalFactory = hasOwn(__webpack_require__.rstest_original_module_factories, id);
52
+ if (!hasSavedOriginalModule && hasCachedModule) __webpack_require__.rstest_original_modules[id] = requiredModule;
53
+ if (!hasSavedOriginalFactory) __webpack_require__.rstest_original_module_factories[id] = __webpack_modules__[id];
52
54
  if (modFactory && 'object' == typeof modFactory) {
53
55
  const isSpy = true === modFactory.spy;
54
56
  const isMock = true === modFactory.mock;
@@ -91,6 +93,10 @@ const getMockImplementation = (mockType = 'mock')=>{
91
93
  else if ('function' == typeof modFactory) {
92
94
  const finalModFactory = function(__webpack_module__, __webpack_exports__, __webpack_require__1) {
93
95
  const res = modFactory();
96
+ if (isPromise(res)) {
97
+ __webpack_module__.exports = res;
98
+ return;
99
+ }
94
100
  if (isMockRequire) {
95
101
  __webpack_module__.exports = res;
96
102
  return;
@@ -5,20 +5,12 @@ function __webpack_require__(moduleId) {
5
5
  var cachedModule = __webpack_module_cache__[moduleId];
6
6
  if (void 0 !== cachedModule) return cachedModule.exports;
7
7
  var module = __webpack_module_cache__[moduleId] = {
8
- id: moduleId,
9
- loaded: false,
10
8
  exports: {}
11
9
  };
12
10
  __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
13
- module.loaded = true;
14
11
  return module.exports;
15
12
  }
16
13
  __webpack_require__.m = __webpack_modules__;
17
- (()=>{
18
- __webpack_require__.add = function registerModules(modules) {
19
- Object.assign(__webpack_require__.m, modules);
20
- };
21
- })();
22
14
  (()=>{
23
15
  __webpack_require__.n = (module)=>{
24
16
  var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
@@ -36,6 +28,11 @@ __webpack_require__.m = __webpack_modules__;
36
28
  });
37
29
  };
38
30
  })();
31
+ (()=>{
32
+ __webpack_require__.add = function registerModules(modules) {
33
+ Object.assign(__webpack_require__.m, modules);
34
+ };
35
+ })();
39
36
  (()=>{
40
37
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
41
38
  })();
package/dist/worker.js CHANGED
@@ -1,11 +1,12 @@
1
1
  import "node:module";
2
2
  import { __webpack_require__ } from "./rslib-runtime.js";
3
- import { basename, isAbsolute, color, dirname, resolve as pathe_M_eThtNZ_resolve, join } from "./3160.js";
4
- import "./487.js";
5
- import { createWorkerMetaMessage, createBirpc } from "./4597.js";
6
- import { createCoverageProvider } from "./5734.js";
7
- import { formatTestError, setRealTimers, getRealTimers } from "./1294.js";
8
- import { globalApis } from "./1157.js";
3
+ import { existsSync, promises } from "node:fs";
4
+ import "./1255.js";
5
+ import { createWorkerMetaMessage, createBirpc } from "./1983.js";
6
+ import { basename, isAbsolute, color, dirname, resolve as pathe_M_eThtNZ_resolve, join } from "./6830.js";
7
+ import { createCoverageProvider } from "./7704.js";
8
+ import { formatTestError, setRealTimers, getRealTimers } from "./7552.js";
9
+ import { globalApis } from "./4411.js";
9
10
  const processSend = process.send.bind(process);
10
11
  const processOn = process.on.bind(process);
11
12
  const processOff = process.off.bind(process);
@@ -33,7 +34,6 @@ function createRuntimeRpc(options, createBirpcImpl = createBirpc) {
33
34
  rpc
34
35
  };
35
36
  }
36
- const external_node_fs_ = __webpack_require__("node:fs");
37
37
  class NodeSnapshotEnvironment {
38
38
  constructor(options = {}){
39
39
  this.options = options;
@@ -51,22 +51,22 @@ class NodeSnapshotEnvironment {
51
51
  return join(join(dirname(filepath), this.options.snapshotsDirName ?? "__snapshots__"), `${basename(filepath)}.snap`);
52
52
  }
53
53
  async prepareDirectory(dirPath) {
54
- await external_node_fs_.promises.mkdir(dirPath, {
54
+ await promises.mkdir(dirPath, {
55
55
  recursive: true
56
56
  });
57
57
  }
58
58
  async saveSnapshotFile(filepath, snapshot) {
59
- await external_node_fs_.promises.mkdir(dirname(filepath), {
59
+ await promises.mkdir(dirname(filepath), {
60
60
  recursive: true
61
61
  });
62
- await external_node_fs_.promises.writeFile(filepath, snapshot, "utf-8");
62
+ await promises.writeFile(filepath, snapshot, "utf-8");
63
63
  }
64
64
  async readSnapshotFile(filepath) {
65
- if (!(0, external_node_fs_.existsSync)(filepath)) return null;
66
- return external_node_fs_.promises.readFile(filepath, "utf-8");
65
+ if (!existsSync(filepath)) return null;
66
+ return promises.readFile(filepath, "utf-8");
67
67
  }
68
68
  async removeSnapshotFile(filepath) {
69
- if ((0, external_node_fs_.existsSync)(filepath)) await external_node_fs_.promises.unlink(filepath);
69
+ if (existsSync(filepath)) await promises.unlink(filepath);
70
70
  }
71
71
  }
72
72
  class RstestSnapshotEnvironment extends NodeSnapshotEnvironment {
@@ -102,7 +102,10 @@ const registerGlobalApi = (api)=>globalApis.reduce((apis, key)=>{
102
102
  const globalCleanups = [];
103
103
  let isTeardown = false;
104
104
  const setupEnv = (env)=>{
105
- if (env) Object.assign(process.env, env);
105
+ if (env) Object.entries(env).forEach(([key, value])=>{
106
+ if (void 0 === value) delete process.env[key];
107
+ else process.env[key] = value;
108
+ });
106
109
  };
107
110
  const preparePool = async ({ entryInfo: { distPath, testPath }, updateSnapshot, context })=>{
108
111
  globalCleanups.forEach((fn)=>{
@@ -125,9 +128,7 @@ const preparePool = async ({ entryInfo: { distPath, testPath }, updateSnapshot,
125
128
  const { runtimeConfig: { globals, printConsoleTrace, disableConsoleIntercept, testEnvironment, snapshotFormat, env } } = context;
126
129
  setupEnv(env);
127
130
  if (!disableConsoleIntercept) {
128
- const { createCustomConsole } = await import("./0~130.js").then((mod)=>({
129
- createCustomConsole: mod.createCustomConsole
130
- }));
131
+ const { createCustomConsole } = await import("./0~console.js");
131
132
  global.console = createCustomConsole({
132
133
  rpc,
133
134
  testPath,
@@ -148,9 +149,7 @@ const preparePool = async ({ entryInfo: { distPath, testPath }, updateSnapshot,
148
149
  testPath,
149
150
  environment: 'node'
150
151
  };
151
- const { createRstestRuntime } = await import("./6151.js").then((mod)=>({
152
- createRstestRuntime: mod.createRstestRuntime
153
- }));
152
+ const { createRstestRuntime } = await import("./1949.js");
154
153
  const unhandledErrors = [];
155
154
  const handleError = (e, type)=>{
156
155
  const error = 'string' == typeof e ? new Error(e) : e;
@@ -177,18 +176,14 @@ const preparePool = async ({ entryInfo: { distPath, testPath }, updateSnapshot,
177
176
  break;
178
177
  case 'jsdom':
179
178
  {
180
- const { environment } = await import("./0~62.js").then((mod)=>({
181
- environment: mod.environment
182
- }));
179
+ const { environment } = await import("./0~jsdom.js");
183
180
  const { teardown } = await environment.setup(global, testEnvironment.options || {});
184
181
  cleanupFns.push(()=>teardown(global));
185
182
  break;
186
183
  }
187
184
  case 'happy-dom':
188
185
  {
189
- const { environment } = await import("./0~4809.js").then((mod)=>({
190
- environment: mod.environment
191
- }));
186
+ const { environment } = await import("./0~happyDom.js");
192
187
  const { teardown } = await environment.setup(global, testEnvironment.options || {});
193
188
  cleanupFns.push(async ()=>teardown(global));
194
189
  break;
@@ -216,16 +211,7 @@ const preparePool = async ({ entryInfo: { distPath, testPath }, updateSnapshot,
216
211
  };
217
212
  };
218
213
  const loadFiles = async ({ setupEntries, assetFiles, rstestContext, distPath, testPath, interopDefault, isolate, outputModule })=>{
219
- const { loadModule } = outputModule ? await import("./0~6923.js").then((mod)=>({
220
- EsmMode: mod.loadEsModule_EsmMode,
221
- asModule: mod.asModule,
222
- clearModuleCache: mod.clearModuleCache,
223
- loadModule: mod.loadModule
224
- })) : await import("./0~5835.js").then((mod)=>({
225
- cacheableLoadModule: mod.cacheableLoadModule,
226
- clearModuleCache: mod.clearModuleCache,
227
- loadModule: mod.loadModule
228
- }));
214
+ const { loadModule } = outputModule ? await import("./0~loadEsModule.js") : await import("./0~loadModule.js");
229
215
  if (!isolate) await loadModule({
230
216
  codeContent: `if (global && typeof global.__rstest_clean_core_cache__ === 'function') {
231
217
  global.__rstest_clean_core_cache__();
@@ -278,16 +264,7 @@ const runInPool = async (options)=>{
278
264
  await new Promise((resolve)=>getRealTimers().setTimeout(resolve));
279
265
  await Promise.all(cleanups.map((fn)=>fn()));
280
266
  if (!isolate) {
281
- const { clearModuleCache } = options.context.outputModule ? await import("./0~6923.js").then((mod)=>({
282
- EsmMode: mod.loadEsModule_EsmMode,
283
- asModule: mod.asModule,
284
- clearModuleCache: mod.clearModuleCache,
285
- loadModule: mod.loadModule
286
- })) : await import("./0~5835.js").then((mod)=>({
287
- cacheableLoadModule: mod.cacheableLoadModule,
288
- clearModuleCache: mod.clearModuleCache,
289
- loadModule: mod.loadModule
290
- }));
267
+ const { clearModuleCache } = options.context.outputModule ? await import("./0~loadEsModule.js") : await import("./0~loadModule.js");
291
268
  clearModuleCache();
292
269
  }
293
270
  isTeardown = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rstest/core",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "The Rsbuild-based test tool.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/web-infra-dev/rstest/issues"
@@ -54,17 +54,19 @@
54
54
  "importMeta.d.ts"
55
55
  ],
56
56
  "dependencies": {
57
- "@rsbuild/core": "^2.0.0-beta.6",
57
+ "@rsbuild/core": "2.0.0-beta.8",
58
58
  "@types/chai": "^5.2.3",
59
59
  "tinypool": "^2.1.0"
60
60
  },
61
61
  "devDependencies": {
62
+ "@rsbuild/plugin-less": "^1.6.0",
63
+ "@rsbuild/plugin-sass": "^1.5.0",
62
64
  "@babel/code-frame": "^7.29.0",
63
- "@clack/prompts": "^0.11.0",
65
+ "@clack/prompts": "^1.1.0",
64
66
  "@jridgewell/trace-mapping": "0.3.31",
65
67
  "@microsoft/api-extractor": "^7.57.6",
66
68
  "@rsbuild/plugin-node-polyfill": "^1.4.4",
67
- "@rslib/core": "^0.19.6",
69
+ "@rslib/core": "0.20.0",
68
70
  "@sinonjs/fake-timers": "^15.1.0",
69
71
  "@types/babel__code-frame": "^7.27.0",
70
72
  "@types/istanbul-lib-coverage": "^2.0.6",
@@ -77,8 +79,8 @@
77
79
  "@vitest/expect": "^3.2.4",
78
80
  "@vitest/snapshot": "^3.2.4",
79
81
  "birpc": "^4.0.0",
80
- "cac": "^6.7.14",
81
- "chai": "^5.3.3",
82
+ "cac": "^7.0.0",
83
+ "chai": "^6.2.2",
82
84
  "chokidar": "^4.0.3",
83
85
  "happy-dom": "^20.7.0",
84
86
  "jest-diff": "^30.2.0",
@@ -89,18 +91,18 @@
89
91
  "picocolors": "^1.1.1",
90
92
  "picomatch": "^4.0.3",
91
93
  "pretty-format": "^30.2.0",
92
- "rslog": "^1.3.2",
94
+ "rslog": "^2.0.0",
93
95
  "source-map-support": "^0.5.21",
94
96
  "stacktrace-parser": "0.1.11",
95
- "std-env": "^3.10.0",
97
+ "std-env": "^4.0.0",
96
98
  "strip-ansi": "^7.1.2",
97
99
  "tinyglobby": "^0.2.15",
98
100
  "tinyspy": "^4.0.4",
99
101
  "url-extras": "^0.1.0",
100
102
  "webpack-license-plugin": "^4.5.1",
101
103
  "webpack": "^5.105.2",
102
- "@rstest/browser-ui": "0.0.0",
103
- "@rstest/tsconfig": "0.0.1"
104
+ "@rstest/tsconfig": "0.0.1",
105
+ "@rstest/browser-ui": "0.0.0"
104
106
  },
105
107
  "peerDependencies": {
106
108
  "happy-dom": "*",