@nuxt/test-utils-nightly 3.20.8-20251025-044846-4dc2ddd → 3.21.0-20251029-131418-f2d3def

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.
@@ -78,9 +78,6 @@ export async function setupWindow(win, environmentOptions) {
78
78
  return _fetch(input, _init);
79
79
  };
80
80
  win.$fetch = createFetch({ fetch: win.fetch, Headers: win.Headers });
81
- win.$fetch.create = (options = {}) => {
82
- return createFetch({ fetch: win.fetch, Headers: win.Headers, ...options });
83
- };
84
81
  win.__registry = registry;
85
82
  win.__app = h3App;
86
83
  const timestamp = Date.now();
@@ -325,6 +325,7 @@ async function renderSuspended(component, options) {
325
325
  const { render, setup, data, computed, methods } = component;
326
326
  let setupContext;
327
327
  let setupState;
328
+ const setProps = reactive({});
328
329
  let interceptedEmit = null;
329
330
  function getInterceptedEmitFunction(emit) {
330
331
  if (emit !== interceptedEmit) {
@@ -390,6 +391,10 @@ async function renderSuspended(component, options) {
390
391
  {
391
392
  onResolve: () => nextTick().then(() => {
392
393
  utils.setupState = setupState;
394
+ utils.rerender = async (props2) => {
395
+ Object.assign(setProps, props2);
396
+ await nextTick();
397
+ };
393
398
  resolve(utils);
394
399
  })
395
400
  },
@@ -449,7 +454,7 @@ async function renderSuspended(component, options) {
449
454
  } : void 0,
450
455
  setup: (props2) => wrappedSetup(props2, setupContext)
451
456
  };
452
- return () => h$1(clonedComponent, { ...props && typeof props === "object" ? props : {}, ...attrs }, slots);
457
+ return () => h$1(clonedComponent, { ...props && typeof props === "object" ? props : {}, ...setProps, ...attrs }, slots);
453
458
  }
454
459
  })
455
460
  }
@@ -83,9 +83,6 @@ async function setupWindow(win, environmentOptions) {
83
83
  return _fetch(input, _init);
84
84
  };
85
85
  win.$fetch = createFetch({ fetch: win.fetch, Headers: win.Headers });
86
- win.$fetch.create = (options = {}) => {
87
- return createFetch({ fetch: win.fetch, Headers: win.Headers, ...options });
88
- };
89
86
  win.__registry = registry;
90
87
  win.__app = h3App;
91
88
  const timestamp = Date.now();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuxt/test-utils-nightly",
3
- "version": "3.20.8-20251025-044846-4dc2ddd",
3
+ "version": "3.21.0-20251029-131418-f2d3def",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nuxt/test-utils.git"
@@ -77,7 +77,7 @@
77
77
  "get-port-please": "^3.2.0",
78
78
  "h3": "^1.15.4",
79
79
  "local-pkg": "^1.1.2",
80
- "magic-string": "^0.30.19",
80
+ "magic-string": "^0.30.21",
81
81
  "node-fetch-native": "^1.6.7",
82
82
  "node-mock-http": "^1.0.3",
83
83
  "ofetch": "^1.4.1",
@@ -95,12 +95,12 @@
95
95
  "devDependencies": {
96
96
  "@cucumber/cucumber": "12.2.0",
97
97
  "@jest/globals": "30.2.0",
98
- "@nuxt/devtools-kit": "2.6.5",
98
+ "@nuxt/devtools-kit": "2.7.0",
99
99
  "@nuxt/eslint-config": "1.9.0",
100
100
  "@nuxt/schema": "4.1.3",
101
101
  "@playwright/test": "1.56.1",
102
102
  "@testing-library/vue": "8.1.0",
103
- "@types/bun": "1.3.0",
103
+ "@types/bun": "1.3.1",
104
104
  "@types/estree": "1.0.8",
105
105
  "@types/jsdom": "27.0.0",
106
106
  "@types/node": "latest",
@@ -110,8 +110,8 @@
110
110
  "compatx": "0.2.0",
111
111
  "eslint": "9.38.0",
112
112
  "installed-check": "9.3.0",
113
- "knip": "5.66.2",
114
- "nitropack": "2.12.7",
113
+ "knip": "5.66.3",
114
+ "nitropack": "2.12.8",
115
115
  "nuxt": "4.1.3",
116
116
  "pkg-pr-new": "0.0.60",
117
117
  "playwright-core": "1.56.1",
@@ -120,10 +120,10 @@
120
120
  "typescript": "5.9.3",
121
121
  "unbuild": "latest",
122
122
  "unimport": "5.5.0",
123
- "vite": "7.1.11",
123
+ "vite": "7.1.12",
124
124
  "vitest": "3.2.4",
125
125
  "vue-router": "4.6.3",
126
- "vue-tsc": "3.1.1"
126
+ "vue-tsc": "3.1.2"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "@cucumber/cucumber": "^10.3.1 || >=11.0.0",
@@ -175,7 +175,7 @@
175
175
  "@nuxt/test-utils": "workspace:*",
176
176
  "@types/node": "22.18.8",
177
177
  "rollup": "4.52.5",
178
- "vite": "7.1.11",
178
+ "vite": "7.1.12",
179
179
  "vite-node": "3.2.4",
180
180
  "vitest": "3.2.4",
181
181
  "vue": "^3.5.22"
@@ -183,7 +183,7 @@
183
183
  "engines": {
184
184
  "node": "^20.0.0 || ^22.0.0 || >=24.0.0"
185
185
  },
186
- "packageManager": "pnpm@10.18.3",
186
+ "packageManager": "pnpm@10.19.0",
187
187
  "pnpm": {
188
188
  "onlyBuiltDependencies": [
189
189
  "@tailwindcss/oxide",