@nuxt/test-utils-nightly 3.21.0-20251030-161832-4f04851 → 3.21.0-20251031-123045-c452751
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.
|
@@ -100,7 +100,7 @@ async function mountSuspended(component, options) {
|
|
|
100
100
|
cleanupFunction();
|
|
101
101
|
}
|
|
102
102
|
const vueApp = tryUseNuxtApp()?.vueApp || globalThis.__unctx__.get("nuxt-app").tryUse().vueApp;
|
|
103
|
-
const { render, setup, data, computed, methods } = component;
|
|
103
|
+
const { render, setup, data, computed, methods, ...componentRest } = component;
|
|
104
104
|
let setupContext;
|
|
105
105
|
let setupState;
|
|
106
106
|
const setProps = reactive({});
|
|
@@ -148,6 +148,7 @@ async function mountSuspended(component, options) {
|
|
|
148
148
|
(resolve) => {
|
|
149
149
|
const vm = mount(
|
|
150
150
|
{
|
|
151
|
+
__cssModules: componentRest.__cssModules,
|
|
151
152
|
setup: (props2, ctx) => {
|
|
152
153
|
setupContext = ctx;
|
|
153
154
|
if (options?.scoped) {
|
|
@@ -331,7 +332,7 @@ async function renderSuspended(component, options) {
|
|
|
331
332
|
} = options || {};
|
|
332
333
|
const { render: renderFromTestingLibrary } = await import('@testing-library/vue');
|
|
333
334
|
const vueApp = tryUseNuxtApp()?.vueApp || globalThis.__unctx__.get("nuxt-app").tryUse().vueApp;
|
|
334
|
-
const { render, setup, data, computed, methods } = component;
|
|
335
|
+
const { render, setup, data, computed, methods, ...componentRest } = component;
|
|
335
336
|
let setupContext;
|
|
336
337
|
let setupState;
|
|
337
338
|
const setProps = reactive({});
|
|
@@ -375,6 +376,7 @@ async function renderSuspended(component, options) {
|
|
|
375
376
|
return new Promise((resolve) => {
|
|
376
377
|
const utils = renderFromTestingLibrary(
|
|
377
378
|
{
|
|
379
|
+
__cssModules: componentRest.__cssModules,
|
|
378
380
|
setup: (props2, ctx) => {
|
|
379
381
|
setupContext = ctx;
|
|
380
382
|
const scope = effectScope();
|