@rstest/core 0.2.1 → 0.3.0

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.
@@ -1,8 +1,9 @@
1
- /*! For license information please see 208.js.LICENSE.txt */
1
+ /*! For license information please see 655.js.LICENSE.txt */
2
2
  import 'module';
3
3
  /*#__PURE__*/ import.meta.url;
4
+ export const __webpack_id__ = "655";
4
5
  export const __webpack_ids__ = [
5
- "208"
6
+ "655"
6
7
  ];
7
8
  export const __webpack_modules__ = {
8
9
  "../../node_modules/.pnpm/@sinonjs+commons@3.0.1/node_modules/@sinonjs/commons/lib/called-in-order.js": function(module, __unused_webpack_exports, __webpack_require__) {
@@ -1308,18 +1309,18 @@ export const __webpack_modules__ = {
1308
1309
  },
1309
1310
  "../../node_modules/.pnpm/@vitest+expect@3.2.4/node_modules/@vitest/expect/dist/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
1310
1311
  __webpack_require__.d(__webpack_exports__, {
1311
- fS: ()=>dist_equals,
1312
- pT: ()=>JestChaiExpect,
1313
- Nu: ()=>customMatchers,
1314
- kc: ()=>JestAsymmetricMatchers,
1315
- CC: ()=>iterableEquality,
1316
- uF: ()=>addCustomEqualityTesters,
1317
- y0: ()=>getState,
1318
- Z0: ()=>ASYMMETRIC_MATCHERS_OBJECT,
1319
- Dd: ()=>JestExtend,
1320
- IW: ()=>setState,
1321
- gs: ()=>subsetEquality,
1322
- p2: ()=>GLOBAL_EXPECT
1312
+ Mc: ()=>JestAsymmetricMatchers,
1313
+ mZ: ()=>GLOBAL_EXPECT,
1314
+ fs: ()=>ASYMMETRIC_MATCHERS_OBJECT,
1315
+ TB: ()=>addCustomEqualityTesters,
1316
+ wb: ()=>setState,
1317
+ Pf: ()=>customMatchers,
1318
+ aI: ()=>dist_equals,
1319
+ Xs: ()=>JestExtend,
1320
+ Gu: ()=>getState,
1321
+ D: ()=>iterableEquality,
1322
+ j2: ()=>subsetEquality,
1323
+ dB: ()=>JestChaiExpect
1323
1324
  });
1324
1325
  var dist = __webpack_require__("../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js");
1325
1326
  const ansiColors = {
@@ -1833,7 +1834,7 @@ export const __webpack_modules__ = {
1833
1834
  if (value === Object(value)) return inspectObject(value, options);
1834
1835
  return options.stylize(String(value), type);
1835
1836
  }
1836
- const { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = dist.Gr;
1837
+ const { AsymmetricMatcher, DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent } = dist.Nx;
1837
1838
  const PLUGINS = [
1838
1839
  ReactTestComponent,
1839
1840
  ReactElement,
@@ -1846,14 +1847,14 @@ export const __webpack_modules__ = {
1846
1847
  const MAX_LENGTH = maxLength ?? 1e4;
1847
1848
  let result;
1848
1849
  try {
1849
- result = (0, dist.WU)(object, {
1850
+ result = (0, dist.GP)(object, {
1850
1851
  maxDepth,
1851
1852
  escapeString: false,
1852
1853
  plugins: PLUGINS,
1853
1854
  ...options
1854
1855
  });
1855
1856
  } catch {
1856
- result = (0, dist.WU)(object, {
1857
+ result = (0, dist.GP)(object, {
1857
1858
  callToJSON: false,
1858
1859
  maxDepth,
1859
1860
  escapeString: false,
@@ -2749,14 +2750,14 @@ export const __webpack_modules__ = {
2749
2750
  function getDefaultOptions() {
2750
2751
  return {
2751
2752
  aAnnotation: "Expected",
2752
- aColor: dist_node.ZP.green,
2753
+ aColor: dist_node.Ay.green,
2753
2754
  aIndicator: "-",
2754
2755
  bAnnotation: "Received",
2755
- bColor: dist_node.ZP.red,
2756
+ bColor: dist_node.Ay.red,
2756
2757
  bIndicator: "+",
2757
- changeColor: dist_node.ZP.inverse,
2758
+ changeColor: dist_node.Ay.inverse,
2758
2759
  changeLineTrailingSpaceColor: noColor,
2759
- commonColor: dist_node.ZP.dim,
2760
+ commonColor: dist_node.Ay.dim,
2760
2761
  commonIndicator: " ",
2761
2762
  commonLineTrailingSpaceColor: noColor,
2762
2763
  compareKeys: void 0,
@@ -2765,7 +2766,7 @@ export const __webpack_modules__ = {
2765
2766
  expand: false,
2766
2767
  includeChangeCounts: false,
2767
2768
  omitAnnotationLines: false,
2768
- patchColor: dist_node.ZP.yellow,
2769
+ patchColor: dist_node.Ay.yellow,
2769
2770
  printBasicPrototype: false,
2770
2771
  truncateThreshold: DIFF_TRUNCATE_THRESHOLD_DEFAULT,
2771
2772
  truncateAnnotation: "... Diff result is truncated",
@@ -3089,7 +3090,7 @@ export const __webpack_modules__ = {
3089
3090
  const { commonColor } = normalizeDiffOptions(options);
3090
3091
  return commonColor(message);
3091
3092
  }
3092
- const { AsymmetricMatcher: diff_AsymmetricMatcher, DOMCollection: diff_DOMCollection, DOMElement: diff_DOMElement, Immutable: diff_Immutable, ReactElement: diff_ReactElement, ReactTestComponent: diff_ReactTestComponent } = dist.Gr;
3093
+ const { AsymmetricMatcher: diff_AsymmetricMatcher, DOMCollection: diff_DOMCollection, DOMElement: diff_DOMElement, Immutable: diff_Immutable, ReactElement: diff_ReactElement, ReactTestComponent: diff_ReactTestComponent } = dist.Nx;
3093
3094
  const diff_PLUGINS = [
3094
3095
  diff_ReactTestComponent,
3095
3096
  diff_ReactElement,
@@ -3097,7 +3098,7 @@ export const __webpack_modules__ = {
3097
3098
  diff_DOMCollection,
3098
3099
  diff_Immutable,
3099
3100
  diff_AsymmetricMatcher,
3100
- dist.Gr.Error
3101
+ dist.Nx.Error
3101
3102
  ];
3102
3103
  const FORMAT_OPTIONS = {
3103
3104
  maxDepth: 20,
@@ -3122,8 +3123,8 @@ export const __webpack_modules__ = {
3122
3123
  if (expectedType !== diff_getType(b)) {
3123
3124
  const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
3124
3125
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
3125
- let aDisplay = (0, dist.WU)(a, formatOptions);
3126
- let bDisplay = (0, dist.WU)(b, formatOptions);
3126
+ let aDisplay = (0, dist.GP)(a, formatOptions);
3127
+ let bDisplay = (0, dist.GP)(b, formatOptions);
3127
3128
  const MAX_LENGTH = 1e5;
3128
3129
  function truncate(s) {
3129
3130
  return s.length <= MAX_LENGTH ? s : `${s.slice(0, MAX_LENGTH)}...`;
@@ -3150,8 +3151,8 @@ export const __webpack_modules__ = {
3150
3151
  }
3151
3152
  }
3152
3153
  function comparePrimitive(a, b, options) {
3153
- const aFormat = (0, dist.WU)(a, FORMAT_OPTIONS);
3154
- const bFormat = (0, dist.WU)(b, FORMAT_OPTIONS);
3154
+ const aFormat = (0, dist.GP)(a, FORMAT_OPTIONS);
3155
+ const bFormat = (0, dist.GP)(b, FORMAT_OPTIONS);
3155
3156
  return aFormat === bFormat ? "" : diffLinesUnified(aFormat.split("\n"), bFormat.split("\n"), options);
3156
3157
  }
3157
3158
  function sortMap(map) {
@@ -3191,12 +3192,12 @@ export const __webpack_modules__ = {
3191
3192
  ...formatOptions,
3192
3193
  indent: 0
3193
3194
  };
3194
- const aCompare = (0, dist.WU)(a, formatOptionsZeroIndent);
3195
- const bCompare = (0, dist.WU)(b, formatOptionsZeroIndent);
3195
+ const aCompare = (0, dist.GP)(a, formatOptionsZeroIndent);
3196
+ const bCompare = (0, dist.GP)(b, formatOptionsZeroIndent);
3196
3197
  if (aCompare === bCompare) return getCommonMessage(NO_DIFF_MESSAGE, options);
3197
3198
  {
3198
- const aDisplay = (0, dist.WU)(a, formatOptions);
3199
- const bDisplay = (0, dist.WU)(b, formatOptions);
3199
+ const aDisplay = (0, dist.GP)(a, formatOptions);
3200
+ const bDisplay = (0, dist.GP)(b, formatOptions);
3200
3201
  return diffLinesUnified2(aDisplay.split("\n"), bDisplay.split("\n"), aCompare.split("\n"), bCompare.split("\n"), options);
3201
3202
  }
3202
3203
  }
@@ -3276,13 +3277,13 @@ export const __webpack_modules__ = {
3276
3277
  return text.replace(/\s+$/gm, (spaces)=>SPACE_SYMBOL.repeat(spaces.length));
3277
3278
  }
3278
3279
  function diff_printReceived(object) {
3279
- return dist_node.ZP.red(replaceTrailingSpaces(stringify(object)));
3280
+ return dist_node.Ay.red(replaceTrailingSpaces(stringify(object)));
3280
3281
  }
3281
3282
  function diff_printExpected(value) {
3282
- return dist_node.ZP.green(replaceTrailingSpaces(stringify(value)));
3283
+ return dist_node.Ay.green(replaceTrailingSpaces(stringify(value)));
3283
3284
  }
3284
3285
  function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff) {
3285
- return diffs.reduce((reduced, diff)=>reduced + (diff[0] === DIFF_EQUAL ? diff[1] : diff[0] === op ? hasCommonDiff ? dist_node.ZP.inverse(diff[1]) : diff[1] : ""), "");
3286
+ return diffs.reduce((reduced, diff)=>reduced + (diff[0] === DIFF_EQUAL ? diff[1] : diff[0] === op ? hasCommonDiff ? dist_node.Ay.inverse(diff[1]) : diff[1] : ""), "");
3286
3287
  }
3287
3288
  __webpack_require__("../../node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js");
3288
3289
  new Set();
@@ -3439,11 +3440,11 @@ ${printReceived(actual)}`
3439
3440
  };
3440
3441
  }
3441
3442
  };
3442
- const EXPECTED_COLOR = dist_node.ZP.green;
3443
- const RECEIVED_COLOR = dist_node.ZP.red;
3444
- const INVERTED_COLOR = dist_node.ZP.inverse;
3445
- const BOLD_WEIGHT = dist_node.ZP.bold;
3446
- const DIM_COLOR = dist_node.ZP.dim;
3443
+ const EXPECTED_COLOR = dist_node.Ay.green;
3444
+ const RECEIVED_COLOR = dist_node.Ay.red;
3445
+ const INVERTED_COLOR = dist_node.Ay.inverse;
3446
+ const BOLD_WEIGHT = dist_node.Ay.bold;
3447
+ const DIM_COLOR = dist_node.Ay.dim;
3447
3448
  function dist_matcherHint(matcherName, received = "received", expected = "expected", options = {}) {
3448
3449
  const { comment = "", isDirectExpectCall = false, isNot = false, promise = "", secondArgument = "", expectedColor = EXPECTED_COLOR, receivedColor = RECEIVED_COLOR, secondArgumentColor = EXPECTED_COLOR } = options;
3449
3450
  let hint = "";
@@ -4774,8 +4775,8 @@ ${printReceived(actual)}`
4774
4775
  return `${i}th`;
4775
4776
  }
4776
4777
  function formatCalls(spy, msg, showActualCall) {
4777
- if (spy.mock.calls.length) msg += dist_node.ZP.gray(`\n\nReceived: \n\n${spy.mock.calls.map((callArg, i)=>{
4778
- let methodCall = dist_node.ZP.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:\n\n`);
4778
+ if (spy.mock.calls.length) msg += dist_node.Ay.gray(`\n\nReceived: \n\n${spy.mock.calls.map((callArg, i)=>{
4779
+ let methodCall = dist_node.Ay.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call:\n\n`);
4779
4780
  if (showActualCall) methodCall += diff_diff(showActualCall, callArg, {
4780
4781
  omitAnnotationLines: true
4781
4782
  });
@@ -4783,12 +4784,12 @@ ${printReceived(actual)}`
4783
4784
  methodCall += "\n";
4784
4785
  return methodCall;
4785
4786
  }).join("\n")}`);
4786
- msg += dist_node.ZP.gray(`\n\nNumber of calls: ${dist_node.ZP.bold(spy.mock.calls.length)}\n`);
4787
+ msg += dist_node.Ay.gray(`\n\nNumber of calls: ${dist_node.Ay.bold(spy.mock.calls.length)}\n`);
4787
4788
  return msg;
4788
4789
  }
4789
4790
  function formatReturns(spy, results, msg, showActualReturn) {
4790
- if (results.length) msg += dist_node.ZP.gray(`\n\nReceived: \n\n${results.map((callReturn, i)=>{
4791
- let methodCall = dist_node.ZP.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:\n\n`);
4791
+ if (results.length) msg += dist_node.Ay.gray(`\n\nReceived: \n\n${results.map((callReturn, i)=>{
4792
+ let methodCall = dist_node.Ay.bold(` ${ordinalOf(i + 1)} ${spy.getMockName()} call return:\n\n`);
4792
4793
  if (showActualReturn) methodCall += diff_diff(showActualReturn, callReturn.value, {
4793
4794
  omitAnnotationLines: true
4794
4795
  });
@@ -4796,7 +4797,7 @@ ${printReceived(actual)}`
4796
4797
  methodCall += "\n";
4797
4798
  return methodCall;
4798
4799
  }).join("\n")}`);
4799
- msg += dist_node.ZP.gray(`\n\nNumber of calls: ${dist_node.ZP.bold(spy.mock.calls.length)}\n`);
4800
+ msg += dist_node.Ay.gray(`\n\nNumber of calls: ${dist_node.Ay.bold(spy.mock.calls.length)}\n`);
4800
4801
  return msg;
4801
4802
  }
4802
4803
  function getMatcherState(assertion, expect) {
@@ -4900,8 +4901,8 @@ ${printReceived(actual)}`
4900
4901
  },
4901
4902
  "../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4902
4903
  __webpack_require__.d(__webpack_exports__, {
4903
- Gr: ()=>plugins,
4904
- WU: ()=>format
4904
+ GP: ()=>format,
4905
+ Nx: ()=>plugins
4905
4906
  });
4906
4907
  var tinyrainbow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js");
4907
4908
  function _mergeNamespaces(n, m) {
@@ -5970,7 +5971,7 @@ ${printReceived(actual)}`
5970
5971
  function getColorsHighlight() {
5971
5972
  return DEFAULT_THEME_KEYS.reduce((colors, key)=>{
5972
5973
  const value = DEFAULT_THEME[key];
5973
- const color = value && tinyrainbow__WEBPACK_IMPORTED_MODULE_0__.ZP[value];
5974
+ const color = value && tinyrainbow__WEBPACK_IMPORTED_MODULE_0__.Ay[value];
5974
5975
  if (color && "string" == typeof color.close && "string" == typeof color.open) colors[key] = color;
5975
5976
  else throw new Error(`pretty-format: Option "theme" has a key "${key}" whose value "${value}" is undefined in ansi-styles.`);
5976
5977
  return colors;
@@ -6041,9 +6042,9 @@ ${printReceived(actual)}`
6041
6042
  },
6042
6043
  "../../node_modules/.pnpm/@vitest+snapshot@3.2.4/node_modules/@vitest/snapshot/dist/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
6043
6044
  __webpack_require__.d(__webpack_exports__, {
6044
- hY: ()=>stripSnapshotIndentation,
6045
- xh: ()=>SnapshotClient,
6046
- zT: ()=>addSerializer
6045
+ U$: ()=>addSerializer,
6046
+ cN: ()=>stripSnapshotIndentation,
6047
+ s: ()=>SnapshotClient
6047
6048
  });
6048
6049
  var pathe__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("pathe");
6049
6050
  var _vitest_pretty_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@vitest+pretty-format@3.2.4/node_modules/@vitest/pretty-format/dist/index.js");
@@ -6632,7 +6633,7 @@ ${printReceived(actual)}`
6632
6633
  const { getPromiseDetails, kPending, kRejected } = process.binding('util');
6633
6634
  Array.isArray(getPromiseDetails(Promise.resolve()));
6634
6635
  } catch (notNode) {}
6635
- const { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = _vitest_pretty_format__WEBPACK_IMPORTED_MODULE_1__.Gr;
6636
+ const { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = _vitest_pretty_format__WEBPACK_IMPORTED_MODULE_1__.Nx;
6636
6637
  function getDefaultExportFromCjs(x) {
6637
6638
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
6638
6639
  }
@@ -7300,7 +7301,7 @@ ${printReceived(actual)}`
7300
7301
  return line + 1;
7301
7302
  }
7302
7303
  async function saveInlineSnapshots(environment, snapshots) {
7303
- const MagicString = (await __webpack_require__.e("443").then(__webpack_require__.bind(__webpack_require__, "../../node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs"))).default;
7304
+ const MagicString = (await __webpack_require__.e("755").then(__webpack_require__.bind(__webpack_require__, "../../node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs"))).default;
7304
7305
  const files = new Set(snapshots.map((i)=>i.file));
7305
7306
  await Promise.all(Array.from(files).map(async (file)=>{
7306
7307
  const snaps = snapshots.filter((i)=>i.file === file);
@@ -7469,7 +7470,7 @@ ${printReceived(actual)}`
7469
7470
  serialize: serialize$1,
7470
7471
  test
7471
7472
  };
7472
- const { DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent, AsymmetricMatcher } = _vitest_pretty_format__WEBPACK_IMPORTED_MODULE_1__.Gr;
7473
+ const { DOMCollection, DOMElement, Immutable, ReactElement, ReactTestComponent, AsymmetricMatcher } = _vitest_pretty_format__WEBPACK_IMPORTED_MODULE_1__.Nx;
7473
7474
  let PLUGINS = [
7474
7475
  ReactTestComponent,
7475
7476
  ReactElement,
@@ -7520,7 +7521,7 @@ ${printReceived(actual)}`
7520
7521
  const escapeRegex = true;
7521
7522
  const printFunctionName = false;
7522
7523
  function serialize(val, indent = 2, formatOverrides = {}) {
7523
- return normalizeNewlines((0, _vitest_pretty_format__WEBPACK_IMPORTED_MODULE_1__.WU)(val, {
7524
+ return normalizeNewlines((0, _vitest_pretty_format__WEBPACK_IMPORTED_MODULE_1__.GP)(val, {
7524
7525
  escapeRegex,
7525
7526
  indent,
7526
7527
  plugins: getSerializers(),
@@ -7977,7 +7978,7 @@ ${printReceived(actual)}`
7977
7978
  },
7978
7979
  "../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/node.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
7979
7980
  __webpack_require__.d(__webpack_exports__, {
7980
- ZP: ()=>node_u
7981
+ Ay: ()=>node_u
7981
7982
  });
7982
7983
  var f = {
7983
7984
  reset: [
@@ -8180,8 +8181,8 @@ ${printReceived(actual)}`
8180
8181
  },
8181
8182
  "../../node_modules/.pnpm/tinyspy@4.0.3/node_modules/tinyspy/dist/index.js": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
8182
8183
  __webpack_require__.d(__webpack_exports__, {
8183
- XD: ()=>internalSpyOn,
8184
- eN: ()=>getInternalState
8184
+ jo: ()=>internalSpyOn,
8185
+ lf: ()=>getInternalState
8185
8186
  });
8186
8187
  function assert(condition, message) {
8187
8188
  if (!condition) throw new Error(message);
@@ -1,7 +1,8 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
+ export const __webpack_id__ = "704";
3
4
  export const __webpack_ids__ = [
4
- "355"
5
+ "704"
5
6
  ];
6
7
  export const __webpack_modules__ = {
7
8
  "./src/utils/error.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -10,7 +11,7 @@ export const __webpack_modules__ = {
10
11
  printError: ()=>printError
11
12
  });
12
13
  var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("node:fs");
13
- var _jridgewell_trace_mapping__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.29/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs");
14
+ var _jridgewell_trace_mapping__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.30/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs");
14
15
  var stacktrace_parser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../node_modules/.pnpm/stacktrace-parser@0.1.11/node_modules/stacktrace-parser/dist/stack-trace-parser.esm.js");
15
16
  var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./src/utils/index.ts");
16
17
  async function printError(error, getSourcemap, rootPath) {
@@ -19,16 +20,16 @@ export const __webpack_modules__ = {
19
20
  const tips = [
20
21
  'Error: not support import `vitest` in Rstest test environment.\n',
21
22
  'Solution:',
22
- ` - Update your code to use imports from "${_utils__WEBPACK_IMPORTED_MODULE_3__.$_.yellow('@rstest/core')}" instead of "${_utils__WEBPACK_IMPORTED_MODULE_3__.$_.yellow('vitest')}".`,
23
+ ` - Update your code to use imports from "${_utils__WEBPACK_IMPORTED_MODULE_3__.yW.yellow('@rstest/core')}" instead of "${_utils__WEBPACK_IMPORTED_MODULE_3__.yW.yellow('vitest')}".`,
23
24
  ' - Enable `globals` configuration and use global API.'
24
25
  ];
25
- _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log(`${_utils__WEBPACK_IMPORTED_MODULE_3__.$_.red(tips.join('\n'))}\n`);
26
+ _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log(`${_utils__WEBPACK_IMPORTED_MODULE_3__.yW.red(tips.join('\n'))}\n`);
26
27
  return;
27
28
  }
28
- _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log(`${_utils__WEBPACK_IMPORTED_MODULE_3__.$_.red(_utils__WEBPACK_IMPORTED_MODULE_3__.$_.bold(errorName))}${_utils__WEBPACK_IMPORTED_MODULE_3__.$_.red(`: ${error.message}`)}\n`);
29
+ _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log(`${_utils__WEBPACK_IMPORTED_MODULE_3__.yW.red(_utils__WEBPACK_IMPORTED_MODULE_3__.yW.bold(errorName))}${_utils__WEBPACK_IMPORTED_MODULE_3__.yW.red(`: ${error.message}`)}\n`);
29
30
  if (error.diff) {
30
- _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log(error.diff);
31
- _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log();
31
+ _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log(error.diff);
32
+ _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log();
32
33
  }
33
34
  if (error.stack) {
34
35
  const stackFrames = await parseErrorStacktrace({
@@ -45,7 +46,7 @@ export const __webpack_modules__ = {
45
46
  if (!filePath) return;
46
47
  const source = node_fs__WEBPACK_IMPORTED_MODULE_0__["default"].existsSync(filePath) ? node_fs__WEBPACK_IMPORTED_MODULE_0__["default"].readFileSync(filePath, 'utf-8') : void 0;
47
48
  if (!source) return;
48
- const { codeFrameColumns } = await __webpack_require__.e("72").then(__webpack_require__.bind(__webpack_require__, "../../node_modules/.pnpm/@babel+code-frame@7.27.1/node_modules/@babel/code-frame/lib/index.js"));
49
+ const { codeFrameColumns } = await __webpack_require__.e("171").then(__webpack_require__.bind(__webpack_require__, "../../node_modules/.pnpm/@babel+code-frame@7.27.1/node_modules/@babel/code-frame/lib/index.js"));
49
50
  const result = codeFrameColumns(source, {
50
51
  start: {
51
52
  line: frame.lineNumber,
@@ -55,15 +56,15 @@ export const __webpack_modules__ = {
55
56
  highlightCode: true,
56
57
  linesBelow: 2
57
58
  });
58
- _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log(result);
59
- _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log('');
59
+ _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log(result);
60
+ _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log('');
60
61
  }
61
62
  function printStack(stackFrames, rootPath) {
62
63
  for (const frame of stackFrames){
63
- const msg = '<unknown>' !== frame.methodName ? `at ${frame.methodName} (${(0, _utils__WEBPACK_IMPORTED_MODULE_3__.Ps)(rootPath, frame.file)}:${frame.lineNumber}:${frame.column})` : `at ${(0, _utils__WEBPACK_IMPORTED_MODULE_3__.Ps)(rootPath, frame.file)}:${frame.lineNumber}:${frame.column}`;
64
- _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log(_utils__WEBPACK_IMPORTED_MODULE_3__.$_.gray(` ${msg}`));
64
+ const msg = '<unknown>' !== frame.methodName ? `at ${frame.methodName} (${(0, _utils__WEBPACK_IMPORTED_MODULE_3__.XJ)(rootPath, frame.file)}:${frame.lineNumber}:${frame.column})` : `at ${(0, _utils__WEBPACK_IMPORTED_MODULE_3__.XJ)(rootPath, frame.file)}:${frame.lineNumber}:${frame.column}`;
65
+ _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log(_utils__WEBPACK_IMPORTED_MODULE_3__.yW.gray(` ${msg}`));
65
66
  }
66
- stackFrames.length && _utils__WEBPACK_IMPORTED_MODULE_3__.kg.log();
67
+ stackFrames.length && _utils__WEBPACK_IMPORTED_MODULE_3__.vF.log();
67
68
  }
68
69
  const stackIgnores = [
69
70
  /\/@rstest\/core/,
@@ -78,11 +79,11 @@ export const __webpack_modules__ = {
78
79
  '<anonymous>'
79
80
  ];
80
81
  async function parseErrorStacktrace({ stack, getSourcemap, fullStack }) {
81
- return Promise.all((0, stacktrace_parser__WEBPACK_IMPORTED_MODULE_2__.Q)(stack).filter((frame)=>fullStack ? true : frame.file && !stackIgnores.some((entry)=>frame.file?.match(entry))).map(async (frame)=>{
82
+ return Promise.all((0, stacktrace_parser__WEBPACK_IMPORTED_MODULE_2__.q)(stack).filter((frame)=>fullStack ? true : frame.file && !stackIgnores.some((entry)=>frame.file?.match(entry))).map(async (frame)=>{
82
83
  const sourcemap = getSourcemap(frame.file);
83
84
  if (sourcemap) {
84
- const traceMap = new _jridgewell_trace_mapping__WEBPACK_IMPORTED_MODULE_1__.s7(sourcemap);
85
- const { line, column, source, name } = (0, _jridgewell_trace_mapping__WEBPACK_IMPORTED_MODULE_1__.Sk)(traceMap, {
85
+ const traceMap = new _jridgewell_trace_mapping__WEBPACK_IMPORTED_MODULE_1__.YX(sourcemap);
86
+ const { line, column, source, name } = (0, _jridgewell_trace_mapping__WEBPACK_IMPORTED_MODULE_1__.sP)(traceMap, {
86
87
  line: frame.lineNumber,
87
88
  column: frame.column
88
89
  });
@@ -1,7 +1,8 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
+ export const __webpack_id__ = "711";
3
4
  export const __webpack_ids__ = [
4
- "965"
5
+ "711"
5
6
  ];
6
7
  export const __webpack_modules__ = {
7
8
  "./src/runtime/worker/env/jsdom.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -28,8 +29,8 @@ export const __webpack_modules__ = {
28
29
  userAgent,
29
30
  ...restOptions
30
31
  });
31
- const cleanupGlobal = (0, _utils__WEBPACK_IMPORTED_MODULE_0__.Nc)(global, dom.window);
32
- const cleanupHandler = (0, _utils__WEBPACK_IMPORTED_MODULE_0__.xp)(global);
32
+ const cleanupGlobal = (0, _utils__WEBPACK_IMPORTED_MODULE_0__.p5)(global, dom.window);
33
+ const cleanupHandler = (0, _utils__WEBPACK_IMPORTED_MODULE_0__.d1)(global);
33
34
  return {
34
35
  teardown () {
35
36
  cleanupHandler();
@@ -42,8 +43,8 @@ export const __webpack_modules__ = {
42
43
  },
43
44
  "./src/runtime/worker/env/utils.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
44
45
  __webpack_require__.d(__webpack_exports__, {
45
- xp: ()=>addDefaultErrorHandler,
46
- Nc: ()=>installGlobal
46
+ d1: ()=>addDefaultErrorHandler,
47
+ p5: ()=>installGlobal
47
48
  });
48
49
  const LIVING_KEYS = [
49
50
  'DOMException',
@@ -1,7 +1,8 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
+ export const __webpack_id__ = "755";
3
4
  export const __webpack_ids__ = [
4
- "443"
5
+ "755"
5
6
  ];
6
7
  export const __webpack_modules__ = {
7
8
  "../../node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
@@ -1,13 +1,14 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
+ export const __webpack_id__ = "829";
3
4
  export const __webpack_ids__ = [
4
- "723"
5
+ "829"
5
6
  ];
6
7
  export const __webpack_modules__ = {
7
- "../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.29/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
8
+ "../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.30/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs": function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
8
9
  __webpack_require__.d(__webpack_exports__, {
9
- s7: ()=>TraceMap,
10
- Sk: ()=>originalPositionFor
10
+ YX: ()=>TraceMap,
11
+ sP: ()=>originalPositionFor
11
12
  });
12
13
  const comma = ','.charCodeAt(0);
13
14
  const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';