From 5d562ab69b5c4e7c95107cfaf6511af36833c1e1 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Sun, 24 Apr 2022 19:27:54 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=20MAJ=20Vite=20et=20Vitest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/package.json | 4 +- ...s => StackedBarChart.test.desactivated.js} | 3 +- yarn.lock | 47 +++++++++++-------- 3 files changed, 30 insertions(+), 24 deletions(-) rename site/source/components/{StackedBarChart.test.js => StackedBarChart.test.desactivated.js} (93%) diff --git a/site/package.json b/site/package.json index b6ed923a6..8dc43f6ee 100644 --- a/site/package.json +++ b/site/package.json @@ -144,9 +144,9 @@ "ts-morph": "^13.0.3", "ts-node": "^10.5.0", "typescript": "^4.3.2", - "vite": "^2.9.1", + "vite": "^2.9.5", "vite-plugin-shim-react-pdf": "^1.0.4", - "vitest": "^0.2.5", + "vitest": "^0.9.4", "xml2js": "^0.4.23", "yaml": "^1.9.2" } diff --git a/site/source/components/StackedBarChart.test.js b/site/source/components/StackedBarChart.test.desactivated.js similarity index 93% rename from site/source/components/StackedBarChart.test.js rename to site/source/components/StackedBarChart.test.desactivated.js index cde9241d3..bb758acfd 100644 --- a/site/source/components/StackedBarChart.test.js +++ b/site/source/components/StackedBarChart.test.desactivated.js @@ -1,7 +1,6 @@ // TODO: Ré-activer ce test. Désactivé à cause d'un problème d'import entre // publicodes-react et styled-component dans le contexte de test uniquement. -// J'ai bon espoir que ce problème soit résolu "tout seul" lors d'une prochaine -// version de vitest. +// https://github.com/styled-components/styled-components/issues/3601 // import { expect, describe, it } from 'vitest' // import { roundedPercentages } from './StackedBarChart' diff --git a/yarn.lock b/yarn.lock index d915e2b32..d16b9519e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5745,13 +5745,20 @@ __metadata: languageName: node linkType: hard -"@types/chai@npm:*, @types/chai@npm:^4.3.0": +"@types/chai@npm:*": version: 4.3.0 resolution: "@types/chai@npm:4.3.0" checksum: 3e393e094263db65df28a0123dc13f342937c1bab6cd173eae913d593c5b9a16b555713a08c34863a1fbf079aa7222b96197c70380a5c130549d6b2f6845a989 languageName: node linkType: hard +"@types/chai@npm:^4.3.1": + version: 4.3.1 + resolution: "@types/chai@npm:4.3.1" + checksum: 2ee246b76c469cd620a7a1876a73bc597074361b67d547b4bd96a0c1adb43597ede2d8589ab626192e14349d83cbb646cc11e2c179eeeb43ff11596de94d82c4 + languageName: node + linkType: hard + "@types/d3-color@npm:^2": version: 2.0.3 resolution: "@types/d3-color@npm:2.0.3" @@ -18531,9 +18538,9 @@ __metadata: ts-morph: ^13.0.3 ts-node: ^10.5.0 typescript: ^4.3.2 - vite: ^2.9.1 + vite: ^2.9.5 vite-plugin-shim-react-pdf: ^1.0.4 - vitest: ^0.2.5 + vitest: ^0.9.4 whatwg-fetch: ^3.0.0 xml2js: ^0.4.23 yaml: ^1.9.2 @@ -19454,17 +19461,17 @@ __metadata: languageName: node linkType: hard -"tinypool@npm:^0.1.1": +"tinypool@npm:^0.1.2": version: 0.1.2 resolution: "tinypool@npm:0.1.2" checksum: 886ec64fcbd5a02336c2127973be3ee184d643f3ffc86d6e52752b0eb396b048801dc07e16fbb6012ab130f58104e0bbd59989ed21f5a49e707a661387e89f86 languageName: node linkType: hard -"tinyspy@npm:^0.2.10": - version: 0.2.10 - resolution: "tinyspy@npm:0.2.10" - checksum: 7c4d89f603f5e12b335f5a97811b11712a6cc44565c2d1c1d76ccf6a0cb9c2b0ca8b7eb84f6cdabd0a49149fb9dababaefadab43bec6d8252dfc797a205f48bd +"tinyspy@npm:^0.3.2": + version: 0.3.2 + resolution: "tinyspy@npm:0.3.2" + checksum: 674d238c9b879a9d7acee3c30cfbc94334016d15a43b9db2f750aa74f107fa7096821d3866603576ea8efda9f2ec0683ffbd960f83de166f250ed583e68f25b3 languageName: node linkType: hard @@ -20490,9 +20497,9 @@ __metadata: languageName: node linkType: hard -"vite@npm:>=2.7.13, vite@npm:^2.9.1": - version: 2.9.1 - resolution: "vite@npm:2.9.1" +"vite@npm:^2.9.5": + version: 2.9.5 + resolution: "vite@npm:2.9.5" dependencies: esbuild: ^0.14.27 fsevents: ~2.3.2 @@ -20515,21 +20522,21 @@ __metadata: optional: true bin: vite: bin/vite.js - checksum: 0f0ac9337fa5c17faa4a59831a2df17475563b23a6162e86b2b60b19835ca1277f3249ea7a6608880354b39caf05779e9bad1e3b1f5b27010deced224aae47ea + checksum: 354189cbce6904a3b58ca70b7ad9e1bb751ded9c13e483165562e634804cfb29bbf1507a4e6334cb9987e3f1f41e9f50764878a3c837523762e9da65229c9543 languageName: node linkType: hard -"vitest@npm:^0.2.5": - version: 0.2.8 - resolution: "vitest@npm:0.2.8" +"vitest@npm:^0.9.4": + version: 0.9.4 + resolution: "vitest@npm:0.9.4" dependencies: - "@types/chai": ^4.3.0 + "@types/chai": ^4.3.1 "@types/chai-subset": ^1.3.3 chai: ^4.3.6 local-pkg: ^0.4.1 - tinypool: ^0.1.1 - tinyspy: ^0.2.10 - vite: ">=2.7.13" + tinypool: ^0.1.2 + tinyspy: ^0.3.2 + vite: ^2.9.5 peerDependencies: "@vitest/ui": "*" c8: "*" @@ -20546,7 +20553,7 @@ __metadata: optional: true bin: vitest: vitest.mjs - checksum: d39d26d2057dd50058d641bd660df13726a1bc80423f9d15c3c1fe96670ea368787b2dcc63ed492362bd205e9f44e1ca25edff14f59986eca615ebadbf72a9e0 + checksum: 31614494f682a6adcedb5c1199e21de7d8b34ca836ab3374691a2948d72d1fb0691366d11560dca23f07c92585f65c305d46199de2d84a0e4407e9f213aca229 languageName: node linkType: hard