Skip to content

Commit fc46b02

Browse files
Merge pull request #91 from Geode-solutions/fix/optimized_dependencies
fix(deps): optimized dependencies
2 parents f65ccee + 5fee361 commit fc46b02

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

nuxt.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,10 @@ export default defineNuxtConfig({
3232
},
3333

3434
testUtils: {},
35+
36+
vite: {
37+
optimizeDeps: {
38+
include: ["fast-deep-equal", "seedrandom", "lodash", "ajv", "globalthis"],
39+
},
40+
},
3541
})

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@
3939
"main": "./nuxt.config.js",
4040
"dependencies": {
4141
"@geode/opengeodeweb-back": "4.0.0",
42-
"@geode/opengeodeweb-viewer": "0.1.0",
43-
"@kitware/vtk.js": "^29.8.0",
42+
"@geode/opengeodeweb-viewer": "0.1.1",
43+
"@kitware/vtk.js": "^30.3.1",
4444
"@mdi/font": "^7.4.47",
4545
"@pinia/nuxt": "^0.5.1",
46-
"@types/node": "^20.11.25",
46+
"@types/node": "^20.12.4",
4747
"@vueuse/components": "^10.9.0",
4848
"@vueuse/core": "^10.9.0",
4949
"@vueuse/nuxt": "^10.9.0",
5050
"ajv": "^8.12.0",
5151
"pinia": "^2.1.7",
52-
"sass": "^1.71.1",
52+
"sass": "^1.74.1",
5353
"semver": "^7.6.0",
5454
"vue-recaptcha": "^2.0.3",
55-
"vue3-carousel": "^0.3.1",
56-
"vuetify": "^3.5.8"
55+
"vue3-carousel": "^0.3.3",
56+
"vuetify": "^3.5.14"
5757
},
5858
"repository": {
5959
"type": "git",

test/components/Launcher.nuxt.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// @vitest-environment nuxt
22

33
import { describe, expect, test, vi } from "vitest"
4-
import { flushPromises, mount } from "@vue/test-utils"
4+
import { flushPromises } from "@vue/test-utils"
5+
import { mountSuspended } from "@nuxt/test-utils/runtime"
56

67
import { createVuetify } from "vuetify"
78
import * as components from "vuetify/components"
@@ -21,7 +22,7 @@ global.ResizeObserver = require("resize-observer-polyfill")
2122
describe("Launcher.vue", async () => {
2223
test(`Mount`, async () => {
2324
const spy_cloud_store = vi.spyOn(cloud_store, "create_connexion")
24-
const wrapper = mount(Launcher, {
25+
const wrapper = await mountSuspended(Launcher, {
2526
global: {
2627
plugins: [vuetify],
2728
},

test/components/Wrapper.nuxt.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @vitest-environment nuxt
22

33
import { describe, expect, test } from "vitest"
4-
import { mount } from "@vue/test-utils"
4+
import { mountSuspended } from "@nuxt/test-utils/runtime"
55

66
import { createVuetify } from "vuetify"
77
import * as components from "vuetify/components"
@@ -46,7 +46,7 @@ describe("Step.vue", async () => {
4646
},
4747
],
4848
})
49-
const wrapper = mount(Wrapper, {
49+
const wrapper = await mountSuspended(Wrapper, {
5050
global: {
5151
plugins: [vuetify],
5252
provide: { stepper_tree },

0 commit comments

Comments
 (0)