@nuxt/test-utils 3.0.0-rc.12 → 3.0.0-rc.13
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/index.mjs +5 -6
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -57,6 +57,7 @@ async function startServer() {
|
|
|
57
57
|
env: {
|
|
58
58
|
...process.env,
|
|
59
59
|
PORT: String(port),
|
|
60
|
+
NITRO_PORT: String(port),
|
|
60
61
|
NODE_ENV: "development"
|
|
61
62
|
}
|
|
62
63
|
});
|
|
@@ -80,6 +81,7 @@ async function startServer() {
|
|
|
80
81
|
env: {
|
|
81
82
|
...process.env,
|
|
82
83
|
PORT: String(port),
|
|
84
|
+
NITRO_PORT: String(port),
|
|
83
85
|
NODE_ENV: "test"
|
|
84
86
|
}
|
|
85
87
|
});
|
|
@@ -285,7 +287,8 @@ async function runTests(opts) {
|
|
|
285
287
|
process.env.NUXT_TEST_DEV = "true";
|
|
286
288
|
}
|
|
287
289
|
const { startVitest } = await import('vitest/dist/node.mjs');
|
|
288
|
-
const
|
|
290
|
+
const succeeded = await startVitest(
|
|
291
|
+
"test",
|
|
289
292
|
[],
|
|
290
293
|
{
|
|
291
294
|
root: opts.rootDir,
|
|
@@ -299,11 +302,7 @@ async function runTests(opts) {
|
|
|
299
302
|
tsconfigRaw: "{}"
|
|
300
303
|
}
|
|
301
304
|
}
|
|
302
|
-
|
|
303
|
-
if (startVitest.length >= 4) {
|
|
304
|
-
args.unshift("test");
|
|
305
|
-
}
|
|
306
|
-
const succeeded = await startVitest(...args);
|
|
305
|
+
);
|
|
307
306
|
if (!succeeded) {
|
|
308
307
|
process.exit(1);
|
|
309
308
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/test-utils",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.13",
|
|
4
4
|
"repository": "nuxt/framework",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@nuxt/kit": "3.0.0-rc.
|
|
14
|
-
"@nuxt/schema": "3.0.0-rc.
|
|
13
|
+
"@nuxt/kit": "3.0.0-rc.13",
|
|
14
|
+
"@nuxt/schema": "3.0.0-rc.13",
|
|
15
15
|
"consola": "^2.15.3",
|
|
16
16
|
"defu": "^6.1.0",
|
|
17
17
|
"execa": "^6.1.0",
|
|
18
18
|
"get-port-please": "^2.6.1",
|
|
19
19
|
"jiti": "^1.16.0",
|
|
20
|
-
"ohmyfetch": "^0.4.
|
|
20
|
+
"ohmyfetch": "^0.4.21"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"playwright": "^1.27.1",
|
|
24
24
|
"unbuild": "latest",
|
|
25
|
-
"vitest": "
|
|
25
|
+
"vitest": "^0.24.5"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"vue": "^3.2.41"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0"
|
|
31
|
+
"node": "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {}
|
|
34
34
|
}
|