diff --git a/nuxt.config.js b/nuxt.config.js index c0c80ed..6e7d180 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -32,4 +32,10 @@ export default defineNuxtConfig({ }, testUtils: {}, + + vite: { + optimizeDeps: { + include: ["fast-deep-equal", "seedrandom", "lodash", "ajv", "globalthis"], + }, + }, }) diff --git a/package.json b/package.json index 91f3db3..6bfaa9f 100644 --- a/package.json +++ b/package.json @@ -39,21 +39,21 @@ "main": "./nuxt.config.js", "dependencies": { "@geode/opengeodeweb-back": "4.0.0", - "@geode/opengeodeweb-viewer": "0.1.0", - "@kitware/vtk.js": "^29.8.0", + "@geode/opengeodeweb-viewer": "0.1.1", + "@kitware/vtk.js": "^30.3.1", "@mdi/font": "^7.4.47", "@pinia/nuxt": "^0.5.1", - "@types/node": "^20.11.25", + "@types/node": "^20.12.4", "@vueuse/components": "^10.9.0", "@vueuse/core": "^10.9.0", "@vueuse/nuxt": "^10.9.0", "ajv": "^8.12.0", "pinia": "^2.1.7", - "sass": "^1.71.1", + "sass": "^1.74.1", "semver": "^7.6.0", "vue-recaptcha": "^2.0.3", - "vue3-carousel": "^0.3.1", - "vuetify": "^3.5.8" + "vue3-carousel": "^0.3.3", + "vuetify": "^3.5.14" }, "repository": { "type": "git", diff --git a/test/components/Launcher.nuxt.test.js b/test/components/Launcher.nuxt.test.js index cc3de63..75498b2 100644 --- a/test/components/Launcher.nuxt.test.js +++ b/test/components/Launcher.nuxt.test.js @@ -1,7 +1,8 @@ // @vitest-environment nuxt import { describe, expect, test, vi } from "vitest" -import { flushPromises, mount } from "@vue/test-utils" +import { flushPromises } from "@vue/test-utils" +import { mountSuspended } from "@nuxt/test-utils/runtime" import { createVuetify } from "vuetify" import * as components from "vuetify/components" @@ -21,7 +22,7 @@ global.ResizeObserver = require("resize-observer-polyfill") describe("Launcher.vue", async () => { test(`Mount`, async () => { const spy_cloud_store = vi.spyOn(cloud_store, "create_connexion") - const wrapper = mount(Launcher, { + const wrapper = await mountSuspended(Launcher, { global: { plugins: [vuetify], }, diff --git a/test/components/Wrapper.nuxt.test.js b/test/components/Wrapper.nuxt.test.js index 2aeaa90..343967e 100644 --- a/test/components/Wrapper.nuxt.test.js +++ b/test/components/Wrapper.nuxt.test.js @@ -1,7 +1,7 @@ // @vitest-environment nuxt import { describe, expect, test } from "vitest" -import { mount } from "@vue/test-utils" +import { mountSuspended } from "@nuxt/test-utils/runtime" import { createVuetify } from "vuetify" import * as components from "vuetify/components" @@ -46,7 +46,7 @@ describe("Step.vue", async () => { }, ], }) - const wrapper = mount(Wrapper, { + const wrapper = await mountSuspended(Wrapper, { global: { plugins: [vuetify], provide: { stepper_tree },