@nuxt/test-utils 3.6.3 → 3.6.5
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/experimental.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolve } from 'pathe';
|
|
2
2
|
import { stringifyQuery } from 'ufo';
|
|
3
|
-
import { $ as $fetch, u as useTestContext } from './shared/test-utils.
|
|
3
|
+
import { $ as $fetch, u as useTestContext } from './shared/test-utils.92e8ff32.mjs';
|
|
4
4
|
import 'execa';
|
|
5
5
|
import 'get-port-please';
|
|
6
6
|
import 'ofetch';
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useTestContext, a as url, c as createTestContext, s as setTestContext, b as stopServer, d as startServer } from './shared/test-utils.
|
|
2
|
-
export { $ as $fetch, e as exposeContextToEnv, f as fetch, i as isDev, r as recoverContextFromEnv } from './shared/test-utils.
|
|
1
|
+
import { u as useTestContext, a as url, c as createTestContext, s as setTestContext, b as stopServer, d as startServer } from './shared/test-utils.92e8ff32.mjs';
|
|
2
|
+
export { $ as $fetch, e as exposeContextToEnv, f as fetch, i as isDev, r as recoverContextFromEnv } from './shared/test-utils.92e8ff32.mjs';
|
|
3
3
|
import { consola } from 'consola';
|
|
4
4
|
import { promises, existsSync } from 'node:fs';
|
|
5
5
|
import { resolve } from 'node:path';
|
|
@@ -72,6 +72,7 @@ async function startServer() {
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
await waitForPort(port, { retries: 32 });
|
|
75
|
+
let lastError;
|
|
75
76
|
for (let i = 0; i < 50; i++) {
|
|
76
77
|
await new Promise((resolve2) => setTimeout(resolve2, 100));
|
|
77
78
|
try {
|
|
@@ -79,11 +80,12 @@ async function startServer() {
|
|
|
79
80
|
if (!res.includes("__NUXT_LOADING__")) {
|
|
80
81
|
return;
|
|
81
82
|
}
|
|
82
|
-
} catch {
|
|
83
|
+
} catch (e) {
|
|
84
|
+
lastError = e;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
ctx.serverProcess.kill();
|
|
86
|
-
throw new Error("Timeout waiting for dev server!");
|
|
88
|
+
throw lastError || new Error("Timeout waiting for dev server!");
|
|
87
89
|
} else {
|
|
88
90
|
ctx.serverProcess = execa("node", [
|
|
89
91
|
resolve$1(ctx.nuxt.options.nitro.output.dir, "server/index.mjs")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/test-utils",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.5",
|
|
4
4
|
"repository": "nuxt/nuxt",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"ofetch": "^1.1.1",
|
|
27
27
|
"pathe": "^1.1.1",
|
|
28
28
|
"ufo": "^1.1.2",
|
|
29
|
-
"@nuxt/kit": "3.6.
|
|
30
|
-
"@nuxt/schema": "3.6.
|
|
29
|
+
"@nuxt/kit": "3.6.5",
|
|
30
|
+
"@nuxt/schema": "3.6.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@jest/globals": "29.6.0",
|