vitest-config-silverwind 2.1.0 → 3.0.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.
- package/index.js +5 -0
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {join, dirname, basename} from "node:path";
|
|
2
|
+
|
|
1
3
|
const test = {
|
|
2
4
|
include: ["**/?(*.)test.?(c|m)[jt]s?(x)"],
|
|
3
5
|
testTimeout: 30000,
|
|
@@ -8,6 +10,9 @@ const test = {
|
|
|
8
10
|
passWithNoTests: true,
|
|
9
11
|
globals: true,
|
|
10
12
|
watch: false,
|
|
13
|
+
resolveSnapshotPath: (path, extension) => {
|
|
14
|
+
return join(dirname(path), "snapshots", `${basename(path)}${extension}`);
|
|
15
|
+
},
|
|
11
16
|
};
|
|
12
17
|
|
|
13
18
|
export const frontendTest = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest-config-silverwind",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Shared vitest configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/vitest-config-silverwind",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"./index.js"
|
|
12
12
|
],
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"eslint": "8.
|
|
15
|
-
"eslint-config-silverwind": "
|
|
14
|
+
"eslint": "8.46.0",
|
|
15
|
+
"eslint-config-silverwind": "74.0.1",
|
|
16
16
|
"js-yaml": "4.1.0",
|
|
17
|
-
"updates": "14.
|
|
17
|
+
"updates": "14.3.4",
|
|
18
18
|
"versions": "11.0.1",
|
|
19
|
-
"vitest": "0.
|
|
19
|
+
"vitest": "0.34.1"
|
|
20
20
|
}
|
|
21
21
|
}
|