@nuxt/test-utils 3.8.1 → 3.9.0-alpha.2

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/package.json CHANGED
@@ -1,60 +1,143 @@
1
1
  {
2
2
  "name": "@nuxt/test-utils",
3
- "version": "3.8.1",
4
- "repository": "nuxt/nuxt",
3
+ "version": "3.9.0-alpha.2",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/nuxt/test-utils.git"
7
+ },
5
8
  "description": "Test utilities for Nuxt",
6
9
  "license": "MIT",
7
10
  "type": "module",
8
- "types": "./dist/index.d.ts",
11
+ "types": "./dist/e2e.d.ts",
9
12
  "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.mjs"
13
- },
14
- "./experimental": {
15
- "types": "./dist/experimental.d.ts",
16
- "import": "./dist/experimental.mjs"
17
- }
13
+ ".": "./dist/e2e.mjs",
14
+ "./config": "./dist/config.mjs",
15
+ "./e2e": "./dist/e2e.mjs",
16
+ "./experimental": "./dist/experimental.mjs",
17
+ "./module": "./dist/module.mjs",
18
+ "./runtime": "./dist/runtime-utils/index.mjs",
19
+ "./vitest-environment": "./dist/vitest-environment.mjs"
18
20
  },
19
21
  "files": [
20
- "dist"
22
+ "dist",
23
+ "config.d.ts",
24
+ "e2e.d.ts",
25
+ "experimental.d.ts",
26
+ "module.d.ts",
27
+ "runtime.d.ts",
28
+ "vitest-environment.d.ts"
21
29
  ],
22
30
  "dependencies": {
31
+ "@nuxt/kit": "^3.8.2",
32
+ "@nuxt/schema": "^3.8.2",
33
+ "c12": "^1.5.1",
23
34
  "consola": "^3.2.3",
24
35
  "defu": "^6.1.3",
36
+ "destr": "^2.0.2",
37
+ "estree-walker": "^3.0.3",
25
38
  "execa": "^8.0.1",
39
+ "fake-indexeddb": "^5.0.1",
26
40
  "get-port-please": "^3.1.1",
41
+ "local-pkg": "^0.5.0",
42
+ "magic-string": "^0.30.5",
43
+ "node-fetch-native": "^1.4.1",
27
44
  "ofetch": "^1.3.3",
28
45
  "pathe": "^1.1.1",
29
- "ufo": "^1.3.1",
30
- "@nuxt/kit": "3.8.1",
31
- "@nuxt/schema": "3.8.1"
46
+ "perfect-debounce": "^1.0.0",
47
+ "radix3": "^1.1.0",
48
+ "scule": "^1.1.1",
49
+ "std-env": "^3.6.0",
50
+ "ufo": "^1.3.2",
51
+ "unenv": "^1.8.0",
52
+ "unplugin": "^1.5.1",
53
+ "vitest-environment-nuxt": "1.0.0-alpha.1"
32
54
  },
33
55
  "devDependencies": {
34
56
  "@jest/globals": "29.7.0",
35
- "playwright-core": "1.39.0",
57
+ "@nuxt/devtools": "1.0.6",
58
+ "@nuxt/eslint-config": "0.2.0",
59
+ "@nuxt/module-builder": "0.5.4",
60
+ "@testing-library/vue": "8.0.1",
61
+ "@types/estree": "1.0.5",
62
+ "@types/jsdom": "21.1.6",
63
+ "@types/semver": "7.5.6",
64
+ "@vitest/ui": "1.0.4",
65
+ "@vue/test-utils": "2.4.3",
66
+ "changelogen": "0.5.5",
67
+ "eslint": "8.56.0",
68
+ "eslint-plugin-import": "2.29.1",
69
+ "eslint-plugin-jsdoc": "46.9.1",
70
+ "eslint-plugin-no-only-tests": "3.1.0",
71
+ "eslint-plugin-unicorn": "49.0.0",
72
+ "h3": "1.9.0",
73
+ "jiti": "1.21.0",
74
+ "nuxt": "3.8.2",
75
+ "playwright-core": "1.40.1",
76
+ "rollup": "4.9.1",
77
+ "semver": "7.5.4",
36
78
  "unbuild": "latest",
37
- "vitest": "0.33.0"
79
+ "unimport": "3.6.1",
80
+ "vite": "5.0.10",
81
+ "vitest": "latest",
82
+ "vue-router": "4.2.5",
83
+ "vue-tsc": "1.8.25"
38
84
  },
39
85
  "peerDependencies": {
40
86
  "@jest/globals": "^29.5.0",
87
+ "@testing-library/vue": "^7.0.0 || ^8.0.1",
88
+ "@vitest/ui": "^0.34.6 || ^1.0.0",
89
+ "@vue/test-utils": "^2.4.2",
90
+ "h3": "*",
91
+ "happy-dom": "^9.10.9 || ^10.0.0 || ^11.0.0 || ^12.0.0",
92
+ "jsdom": "^22.0.0 || ^23.0.0",
41
93
  "playwright-core": "^1.34.3",
42
- "vitest": "^0.30.0 || ^0.31.0 || ^0.32.0 || ^0.33.0",
43
- "vue": "^3.3.4"
94
+ "vite": "*",
95
+ "vitest": "^0.34.6 || ^1.0.0",
96
+ "vue": "^3.3.4",
97
+ "vue-router": "^4.0.0"
44
98
  },
45
99
  "peerDependenciesMeta": {
100
+ "@testing-library/vue": {
101
+ "optional": true
102
+ },
103
+ "happy-dom": {
104
+ "optional": true
105
+ },
106
+ "@vue/test-utils": {
107
+ "optional": true
108
+ },
109
+ "jsdom": {
110
+ "optional": true
111
+ },
46
112
  "@jest/globals": {
47
113
  "optional": true
48
114
  },
49
115
  "playwright-core": {
50
116
  "optional": true
51
117
  },
118
+ "@vitest/ui": {
119
+ "optional": true
120
+ },
52
121
  "vitest": {
53
122
  "optional": true
54
123
  }
55
124
  },
125
+ "resolutions": {
126
+ "@nuxt/test-utils": "workspace:*",
127
+ "rollup": "4.9.1",
128
+ "vite": "5.0.10"
129
+ },
56
130
  "engines": {
57
131
  "node": "^14.18.0 || >=16.10.0"
58
132
  },
59
- "scripts": {}
133
+ "packageManager": "pnpm@8.12.1",
134
+ "scripts": {
135
+ "lint": "eslint --ext .vue,.ts,.js,.mjs .",
136
+ "lint:fix": "eslint --ext .vue,.ts,.js,.mjs . --fix",
137
+ "test:examples": "pnpm -r test",
138
+ "test:types": "vue-tsc --noEmit",
139
+ "test:unit": "vitest test/unit --run",
140
+ "dev:prepare": "nuxi prepare && unbuild --stub && pnpm -r dev:prepare",
141
+ "release": "pnpm test:examples && pnpm prepack && changelogen --release --push && pnpm publish"
142
+ }
60
143
  }
package/runtime.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/runtime-utils/index.mjs'
@@ -0,0 +1 @@
1
+ export { default } from './dist/vitest-environment'