Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): optimized dependencies #91

Merged
merged 4 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@ export default defineNuxtConfig({
},

testUtils: {},

vite: {
optimizeDeps: {
include: ["fast-deep-equal", "seedrandom", "lodash", "ajv", "globalthis"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are all needed in OGW too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OGW ? 😅

},
},
})
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions test/components/Launcher.nuxt.test.js
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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],
},
Expand Down
4 changes: 2 additions & 2 deletions test/components/Wrapper.nuxt.test.js
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -46,7 +46,7 @@ describe("Step.vue", async () => {
},
],
})
const wrapper = mount(Wrapper, {
const wrapper = await mountSuspended(Wrapper, {
global: {
plugins: [vuetify],
provide: { stepper_tree },
Expand Down
Loading