From 42411677707255e81bb6fd6002892045b9ff89b1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 12 Apr 2024 20:10:01 +0200 Subject: [PATCH] Add dependencies for vitest testutils --- package.json | 1 + vite.config.js | 1 + yarn.lock | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/package.json b/package.json index c7ba481c..f5564e4b 100644 --- a/package.json +++ b/package.json @@ -63,6 +63,7 @@ "eslint": "^8.57.0", "eslint-plugin-prettier": "^5.1.3", "eslint-plugin-vue": "^9.24.1", + "happy-dom": "^14.7.1", "mutationobserver-shim": "^0.3.7", "portal-vue": "^3.0.0", "prettier": "^3.2.5", diff --git a/vite.config.js b/vite.config.js index b0192af7..9a2009bd 100644 --- a/vite.config.js +++ b/vite.config.js @@ -64,6 +64,7 @@ export default defineConfig({ port: 3000, }, test: { + environment: 'happy-dom', exclude: [ '**/node_modules/**', '**/dist/**', diff --git a/yarn.lock b/yarn.lock index 8889f619..904c374d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3210,6 +3210,7 @@ __metadata: eslint-plugin-prettier: "npm:^5.1.3" eslint-plugin-vue: "npm:^9.24.1" favico.js: "npm:^0.3.10" + happy-dom: "npm:^14.7.1" humanize-duration: "npm:^3.32.0" mutationobserver-shim: "npm:^0.3.7" pinia: "npm:^2.1.7" @@ -3479,6 +3480,17 @@ __metadata: languageName: node linkType: hard +"happy-dom@npm:^14.7.1": + version: 14.7.1 + resolution: "happy-dom@npm:14.7.1" + dependencies: + entities: "npm:^4.5.0" + webidl-conversions: "npm:^7.0.0" + whatwg-mimetype: "npm:^3.0.0" + checksum: 10/8a8c8995abc92d5319750d71cac08a4aafd26e8a7203d2a970270c5c1ca68dad2b3af772de761e061107f3aaa51d6cb9430f07e05366047a126ef908377a4c08 + languageName: node + linkType: hard + "has-flag@npm:^4.0.0": version: 4.0.0 resolution: "has-flag@npm:4.0.0" @@ -6140,6 +6152,13 @@ __metadata: languageName: node linkType: hard +"webidl-conversions@npm:^7.0.0": + version: 7.0.0 + resolution: "webidl-conversions@npm:7.0.0" + checksum: 10/4c4f65472c010eddbe648c11b977d048dd96956a625f7f8b9d64e1b30c3c1f23ea1acfd654648426ce5c743c2108a5a757c0592f02902cf7367adb7d14e67721 + languageName: node + linkType: hard + "webpack-sources@npm:^3.2.3": version: 3.2.3 resolution: "webpack-sources@npm:3.2.3" @@ -6154,6 +6173,13 @@ __metadata: languageName: node linkType: hard +"whatwg-mimetype@npm:^3.0.0": + version: 3.0.0 + resolution: "whatwg-mimetype@npm:3.0.0" + checksum: 10/96f9f628c663c2ae05412c185ca81b3df54bcb921ab52fe9ebc0081c1720f25d770665401eb2338ab7f48c71568133845638e18a81ed52ab5d4dcef7d22b40ef + languageName: node + linkType: hard + "which@npm:^2.0.1": version: 2.0.2 resolution: "which@npm:2.0.2"