@vitest/utils 4.1.3 → 4.1.5

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.
@@ -379,8 +379,8 @@ function createStackString(stacks) {
379
379
  function parseStacktrace(stack, options = {}) {
380
380
  const { ignoreStackEntries = stackIgnorePatterns } = options;
381
381
  let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
382
- // remove assertion helper's internal stacks
383
- const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__" || s.method === "async __VITEST_HELPER__");
382
+ // remove vi.defineHelper's internal stacks
383
+ const helperIndex = stacks.findLastIndex((s) => s.method.includes("__VITEST_HELPER__"));
384
384
  if (helperIndex >= 0) {
385
385
  stacks = stacks.slice(helperIndex + 1);
386
386
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vitest/utils",
3
3
  "type": "module",
4
- "version": "4.1.3",
4
+ "version": "4.1.5",
5
5
  "description": "Shared Vitest utility functions",
6
6
  "license": "MIT",
7
7
  "funding": "https://opencollective.com/vitest",
@@ -86,7 +86,7 @@
86
86
  "dependencies": {
87
87
  "convert-source-map": "^2.0.0",
88
88
  "tinyrainbow": "^3.1.0",
89
- "@vitest/pretty-format": "4.1.3"
89
+ "@vitest/pretty-format": "4.1.5"
90
90
  },
91
91
  "devDependencies": {
92
92
  "@jridgewell/trace-mapping": "0.3.31",