@nuxt/test-utils 4.0.1 → 4.0.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/dist/config.mjs CHANGED
@@ -32,7 +32,8 @@ async function startNuxtAndGetViteConfig(rootDir = process.cwd(), options = {})
32
32
  const { buildNuxt, loadNuxt } = await loadKit(rootDir);
33
33
  const nuxt = await loadNuxt({
34
34
  cwd: rootDir,
35
- dev: false,
35
+ // https://github.com/nuxt/nuxt/blob/d52a4fdd7ad5feb035dcf3f56c3b2d0ab059b1d4/packages/kit/src/loader/nuxt.ts#L24
36
+ dev: options.overrides?.dev ?? false,
36
37
  dotenv: defu(options.dotenv, {
37
38
  cwd: rootDir,
38
39
  fileName: ".env.test"
package/dist/module.mjs CHANGED
@@ -952,7 +952,7 @@ function vitestWrapper(options) {
952
952
  };
953
953
  }
954
954
 
955
- const version = "4.0.1";
955
+ const version = "4.0.2";
956
956
  const pkg = {
957
957
  version: version};
958
958
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/test-utils",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/test-utils.git"
@@ -53,19 +53,6 @@
53
53
  "dist",
54
54
  "dirs.js"
55
55
  ],
56
- "scripts": {
57
- "lint": "eslint .",
58
- "lint:fix": "eslint . --fix",
59
- "test": "pnpm test:types && pnpm test:unit && pnpm test:examples",
60
- "test:examples": "pnpm --filter '!@nuxt/test-utils' --filter '!example-app-cucumber' --filter '!example-app-jest' --filter '!example-app-bun' -r test && pnpm --filter example-app-cucumber -r test",
61
- "test:knip": "knip",
62
- "test:engines": "pnpm installed-check --no-workspaces --ignore-dev",
63
- "test:types": "vue-tsc --noEmit && vitest --dir ./test/types --typecheck.only --run",
64
- "test:unit": "vitest --dir ./test/unit --run",
65
- "build": "unbuild",
66
- "prepack": "unbuild",
67
- "dev:prepare": "nuxt prepare && unbuild --stub && pnpm -r dev:prepare"
68
- },
69
56
  "dependencies": {
70
57
  "@clack/prompts": "1.2.0",
71
58
  "@nuxt/devtools-kit": "^2.7.0",
@@ -94,8 +81,8 @@
94
81
  "tinyexec": "^1.1.1",
95
82
  "ufo": "^1.6.3",
96
83
  "unplugin": "^3.0.0",
97
- "vitest-environment-nuxt": "workspace:*",
98
- "vue": "^3.5.32"
84
+ "vue": "^3.5.32",
85
+ "vitest-environment-nuxt": "2.0.0"
99
86
  },
100
87
  "devDependencies": {
101
88
  "@cucumber/cucumber": "12.7.0",
@@ -189,5 +176,16 @@
189
176
  "engines": {
190
177
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
191
178
  },
192
- "packageManager": "pnpm@10.33.0"
193
- }
179
+ "scripts": {
180
+ "lint": "eslint .",
181
+ "lint:fix": "eslint . --fix",
182
+ "test": "pnpm test:types && pnpm test:unit && pnpm test:examples",
183
+ "test:examples": "pnpm --filter '!@nuxt/test-utils' --filter '!example-app-cucumber' --filter '!example-app-jest' --filter '!example-app-bun' -r test && pnpm --filter example-app-cucumber -r test",
184
+ "test:knip": "knip",
185
+ "test:engines": "pnpm installed-check --no-workspaces --ignore-dev",
186
+ "test:types": "vue-tsc --noEmit && vitest --dir ./test/types --typecheck.only --run",
187
+ "test:unit": "vitest --dir ./test/unit --run",
188
+ "build": "unbuild",
189
+ "dev:prepare": "nuxt prepare && unbuild --stub && pnpm -r dev:prepare"
190
+ }
191
+ }