@nuxt/test-utils-nightly 4.0.0-1699284628.89ffa77 → 4.0.0-1702810232.fba662c

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