@vitest/snapshot 2.0.0-beta.3 → 2.0.0-beta.4
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.
- package/dist/index.js +7 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -958,7 +958,12 @@ const stackIgnorePatterns = [
|
|
958
958
|
"/node_modules/chai/",
|
959
959
|
"/node_modules/tinypool/",
|
960
960
|
"/node_modules/tinyspy/",
|
961
|
+
// browser related deps
|
961
962
|
"/deps/chai.js",
|
963
|
+
"/deps/vitest___chai.js",
|
964
|
+
"/deps/p-limit.js",
|
965
|
+
/node:\w+/,
|
966
|
+
/__vitest_test__/,
|
962
967
|
/__vitest_browser__/
|
963
968
|
];
|
964
969
|
function extractLocation(urlLike) {
|
@@ -974,7 +979,8 @@ function extractLocation(urlLike) {
|
|
974
979
|
url = urlObj.pathname;
|
975
980
|
}
|
976
981
|
if (url.startsWith("/@fs/")) {
|
977
|
-
|
982
|
+
const isWindows = /^\/@fs\/[a-zA-Z]:\//.test(url);
|
983
|
+
url = url.slice(isWindows ? 5 : 4);
|
978
984
|
}
|
979
985
|
return [url, parts[2] || void 0, parts[3] || void 0];
|
980
986
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/snapshot",
|
3
3
|
"type": "module",
|
4
|
-
"version": "2.0.0-beta.
|
4
|
+
"version": "2.0.0-beta.4",
|
5
5
|
"description": "Vitest snapshot manager",
|
6
6
|
"license": "MIT",
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"devDependencies": {
|
46
46
|
"@types/natural-compare": "^1.4.3",
|
47
47
|
"natural-compare": "^1.4.0",
|
48
|
-
"@vitest/utils": "2.0.0-beta.
|
48
|
+
"@vitest/utils": "2.0.0-beta.4"
|
49
49
|
},
|
50
50
|
"scripts": {
|
51
51
|
"build": "rimraf dist && rollup -c",
|