@nuxt/test-utils-nightly 3.21.1-20251215-133842-059988f → 3.21.1-20251219-125305-c6e4b78
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/e2e.mjs +3 -3
- package/dist/experimental.mjs +1 -1
- package/dist/playwright.mjs +2 -2
- package/dist/runtime-utils/index.mjs +4 -0
- package/dist/shared/{test-utils-nightly.DqnRFuuO.mjs → test-utils-nightly.BpHODLaZ.mjs} +1 -1
- package/dist/shared/{test-utils-nightly.CtwoJP76.mjs → test-utils-nightly.C_clWQBc.mjs} +4 -4
- package/package.json +5 -5
package/dist/e2e.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { b as buildFixture, c as createBrowser, a as createPage, d as createTest, g as getBrowser, l as loadFixture, e as setup, s as setupMaps, w as waitForHydration } from './shared/test-utils-nightly.
|
|
2
|
-
import { u as useTestContext } from './shared/test-utils-nightly.
|
|
3
|
-
export { $ as $fetch, c as createTestContext, e as exposeContextToEnv, f as fetch, i as isDev, r as recoverContextFromEnv, s as setTestContext, a as startServer, b as stopServer, d as url } from './shared/test-utils-nightly.
|
|
1
|
+
export { b as buildFixture, c as createBrowser, a as createPage, d as createTest, g as getBrowser, l as loadFixture, e as setup, s as setupMaps, w as waitForHydration } from './shared/test-utils-nightly.BpHODLaZ.mjs';
|
|
2
|
+
import { u as useTestContext } from './shared/test-utils-nightly.C_clWQBc.mjs';
|
|
3
|
+
export { $ as $fetch, c as createTestContext, e as exposeContextToEnv, f as fetch, i as isDev, r as recoverContextFromEnv, s as setTestContext, a as startServer, b as stopServer, d as url } from './shared/test-utils-nightly.C_clWQBc.mjs';
|
|
4
4
|
import { consola } from 'consola';
|
|
5
5
|
import { resolve } from 'pathe';
|
|
6
6
|
import { distDir } from '#dirs';
|
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-nightly.
|
|
3
|
+
import { $ as $fetch, u as useTestContext } from './shared/test-utils-nightly.C_clWQBc.mjs';
|
|
4
4
|
import 'tinyexec';
|
|
5
5
|
import 'get-port-please';
|
|
6
6
|
import 'ofetch';
|
package/dist/playwright.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import defu from 'defu';
|
|
2
2
|
import { test as test$1 } from '@playwright/test';
|
|
3
3
|
export { expect } from '@playwright/test';
|
|
4
|
-
import { w as waitForHydration, d as createTest } from './shared/test-utils-nightly.
|
|
4
|
+
import { w as waitForHydration, d as createTest } from './shared/test-utils-nightly.BpHODLaZ.mjs';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'ufo';
|
|
7
7
|
import 'std-env';
|
|
@@ -11,7 +11,7 @@ import 'destr';
|
|
|
11
11
|
import 'scule';
|
|
12
12
|
import 'node:url';
|
|
13
13
|
import 'exsolve';
|
|
14
|
-
import { d as url } from './shared/test-utils-nightly.
|
|
14
|
+
import { d as url } from './shared/test-utils-nightly.C_clWQBc.mjs';
|
|
15
15
|
import 'pathe';
|
|
16
16
|
import '#dirs';
|
|
17
17
|
import './shared/test-utils-nightly.G1ew4kEe.mjs';
|
|
@@ -189,6 +189,7 @@ async function mountSuspended(component, options) {
|
|
|
189
189
|
Suspense,
|
|
190
190
|
{
|
|
191
191
|
onResolve: () => nextTick().then(() => {
|
|
192
|
+
if (isMountSettled) return;
|
|
192
193
|
isMountSettled = true;
|
|
193
194
|
vm.setupState = setupState;
|
|
194
195
|
vm.__setProps = (props2) => {
|
|
@@ -200,6 +201,7 @@ async function mountSuspended(component, options) {
|
|
|
200
201
|
{
|
|
201
202
|
default: () => h$1({
|
|
202
203
|
name: "MountSuspendedHelper",
|
|
204
|
+
render: () => "",
|
|
203
205
|
async setup() {
|
|
204
206
|
const router = useRouter();
|
|
205
207
|
await router.replace(route);
|
|
@@ -382,6 +384,7 @@ async function renderSuspended(component, options) {
|
|
|
382
384
|
Suspense,
|
|
383
385
|
{
|
|
384
386
|
onResolve: () => nextTick().then(() => {
|
|
387
|
+
if (isMountSettled) return;
|
|
385
388
|
isMountSettled = true;
|
|
386
389
|
utils.setupState = setupState;
|
|
387
390
|
utils.rerender = async (props2) => {
|
|
@@ -394,6 +397,7 @@ async function renderSuspended(component, options) {
|
|
|
394
397
|
{
|
|
395
398
|
default: () => h$1({
|
|
396
399
|
name: "RenderHelper",
|
|
400
|
+
render: () => "",
|
|
397
401
|
async setup() {
|
|
398
402
|
const router = useRouter();
|
|
399
403
|
await router.replace(route);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as useTestContext, d as url, c as createTestContext, a as startServer, b as stopServer, s as setTestContext } from './test-utils-nightly.
|
|
1
|
+
import { u as useTestContext, d as url, c as createTestContext, a as startServer, b as stopServer, s as setTestContext } from './test-utils-nightly.C_clWQBc.mjs';
|
|
2
2
|
import { existsSync, promises } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
4
|
import { defu } from 'defu';
|
|
@@ -91,8 +91,8 @@ async function startServer(options = {}) {
|
|
|
91
91
|
PORT: String(port),
|
|
92
92
|
HOST: host,
|
|
93
93
|
NODE_ENV: "development",
|
|
94
|
-
...options.env,
|
|
95
|
-
...
|
|
94
|
+
...ctx.options.env,
|
|
95
|
+
...options.env
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
});
|
|
@@ -128,8 +128,8 @@ async function startServer(options = {}) {
|
|
|
128
128
|
PORT: String(port),
|
|
129
129
|
HOST: host,
|
|
130
130
|
NODE_ENV: "test",
|
|
131
|
-
...options.env,
|
|
132
|
-
...
|
|
131
|
+
...ctx.options.env,
|
|
132
|
+
...options.env
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/test-utils-nightly",
|
|
3
|
-
"version": "3.21.1-
|
|
3
|
+
"version": "3.21.1-20251219-125305-c6e4b78",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/test-utils.git"
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"nuxt": "4.2.1",
|
|
117
117
|
"pkg-pr-new": "0.0.62",
|
|
118
118
|
"playwright-core": "1.57.0",
|
|
119
|
-
"rollup": "4.53.
|
|
119
|
+
"rollup": "4.53.4",
|
|
120
120
|
"semver": "7.7.3",
|
|
121
121
|
"typescript": "5.9.3",
|
|
122
122
|
"unbuild": "latest",
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"@cucumber/cucumber": "12.4.0",
|
|
174
174
|
"@nuxt/schema": "4.2.1",
|
|
175
175
|
"@nuxt/test-utils": "workspace:*",
|
|
176
|
-
"@types/node": "24.10.
|
|
177
|
-
"rollup": "4.53.
|
|
176
|
+
"@types/node": "24.10.4",
|
|
177
|
+
"rollup": "4.53.4",
|
|
178
178
|
"vite": "7.3.0",
|
|
179
179
|
"vite-node": "5.2.0",
|
|
180
180
|
"vitest": "3.2.4",
|
|
@@ -183,5 +183,5 @@
|
|
|
183
183
|
"engines": {
|
|
184
184
|
"node": "^20.0.0 || ^22.0.0 || >=24.0.0"
|
|
185
185
|
},
|
|
186
|
-
"packageManager": "pnpm@10.
|
|
186
|
+
"packageManager": "pnpm@10.26.0"
|
|
187
187
|
}
|