vitest-config-silverwind 6.0.0 → 7.0.1

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 (2) hide show
  1. package/index.js +5 -1
  2. package/package.json +17 -5
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {join, dirname, basename, relative, sep} from "node:path";
2
2
  import {fileURLToPath} from "node:url";
3
3
 
4
- const base = ({url} = {}) => ({
4
+ const base = ({url, setupFiles = []} = {}) => ({
5
5
  include: [
6
6
  "**/?(*.)test.?(c|m)[jt]s?(x)",
7
7
  ],
@@ -9,6 +9,10 @@ const base = ({url} = {}) => ({
9
9
  "**/{node_modules,dist,e2e,snapshots}/**",
10
10
  "**/.{air,git,github,gitea,swc,ruff_cache,venv,vscode}/**",
11
11
  ],
12
+ setupFiles: [
13
+ fileURLToPath(new URL("vitest.setup.js", import.meta.url)),
14
+ ...setupFiles,
15
+ ],
12
16
  testTimeout: 30000,
13
17
  pool: "forks", // https://github.com/vitest-dev/vitest/issues/2008
14
18
  cache: false, // https://github.com/vitest-dev/vitest/issues/2008
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-config-silverwind",
3
- "version": "6.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Shared vitest configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/vitest-config-silverwind",
@@ -8,14 +8,26 @@
8
8
  "type": "module",
9
9
  "exports": "./index.js",
10
10
  "files": [
11
- "./index.js"
11
+ "index.js",
12
+ "setup.js"
12
13
  ],
14
+ "dependencies": {
15
+ "jest-extended": "4.0.2"
16
+ },
13
17
  "devDependencies": {
14
18
  "eslint": "8.57.0",
15
- "eslint-config-silverwind": "82.0.4",
19
+ "eslint-config-silverwind": "82.0.6",
16
20
  "js-yaml": "4.1.0",
17
- "updates": "15.3.1",
21
+ "updates": "16.0.0",
18
22
  "versions": "12.0.1",
19
- "vitest": "1.3.1"
23
+ "vitest": "1.4.0"
24
+ },
25
+ "peerDependencies": {
26
+ "happy-dom": "*"
27
+ },
28
+ "peerDependenciesMeta": {
29
+ "happy-dom": {
30
+ "optional": true
31
+ }
20
32
  }
21
33
  }