From 47b1961a112fdedf2deb88875d4ec6a64637d3a4 Mon Sep 17 00:00:00 2001 From: Gabriel Buragev Date: Thu, 19 Jan 2023 17:11:31 +0100 Subject: [PATCH] frontend: update vitest to a later version Seems like there is a weird issue with vitest version <0.12.10 when using mocked timers inside tests. More specifically, this issue: https://github.com/vitest-dev/vitest/pull/1379 This commit updates the version of vitest to a version which contains a fix for this issue. --- frontend/package.json | 2 +- frontend/yarn.lock | 51 ++++++++++++++++++++++++++++++++----------- 2 files changed, 39 insertions(+), 14 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 2c568d1f1..ba7d2b5ed 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -66,7 +66,7 @@ "typechain": "^8.1.1", "typescript": "~4.5.5", "vite": "^2.9.13", - "vitest": "^0.9.3" + "vitest": "^0.12.10" }, "engines": { "node": ">=16" diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 6a1d84688..f22286e0e 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -758,11 +758,16 @@ dependencies: "@types/chai" "*" -"@types/chai@*", "@types/chai@^4.3.0": +"@types/chai@*": version "4.3.1" resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.1.tgz#e2c6e73e0bdeb2521d00756d099218e9f5d90a04" integrity sha512-/zPMqDkzSZ8t3VtxOa4KPq7uzzW978M9Tvh+j7GHKuo6k6GTLxPJ4J5gE5cjfJ26pnXst0N5Hax8Sr0T2Mi9zQ== +"@types/chai@^4.3.1": + version "4.3.4" + resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.3.4.tgz#e913e8175db8307d78b4e8fa690408ba6b65dee4" + integrity sha512-KnRanxnpfpjUTqTCXslZSEdLfXExwgNxYPdiO2WGUj8+HDjFi8R3k5RVKPeSCzLjCcshCAtVO2QBbVuAV4kTnw== + "@types/istanbul-lib-coverage@^2.0.1": version "2.0.4" resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" @@ -4623,6 +4628,13 @@ rlp@^2.0.0, rlp@^2.2.3: dependencies: bn.js "^5.2.0" +"rollup@>=2.59.0 <2.78.0": + version "2.77.3" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.3.tgz#8f00418d3a2740036e15deb653bed1a90ee0cc12" + integrity sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g== + optionalDependencies: + fsevents "~2.3.2" + rollup@^2.59.0: version "2.67.2" resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.67.2.tgz#d95e15f60932ad21e05a870bd0aa0b235d056f04" @@ -4984,10 +4996,10 @@ text-table@^0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= -tinypool@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/tinypool/-/tinypool-0.1.2.tgz#5b1d5f5bb403afac8c67000047951ce76342fda7" - integrity sha512-fvtYGXoui2RpeMILfkvGIgOVkzJEGediv8UJt7TxdAOY8pnvUkFg/fkvqTfXG9Acc9S17Cnn1S4osDc2164guA== +tinypool@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/tinypool/-/tinypool-0.1.3.tgz#b5570b364a1775fd403de5e7660b325308fee26b" + integrity sha512-2IfcQh7CP46XGWGGbdyO4pjcKqsmVqFAPcXfPxcPXmOWt9cYkTP9HcDmGgsfijYoAEc4z9qcpM/BaBz46Y9/CQ== tinyspy@^0.3.2: version "0.3.2" @@ -5240,7 +5252,7 @@ verror@1.10.0: core-util-is "1.0.2" extsprintf "^1.2.0" -vite@^2.9.1, vite@^2.9.13: +vite@^2.9.13: version "2.9.13" resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.13.tgz#859cb5d4c316c0d8c6ec9866045c0f7858ca6abc" integrity sha512-AsOBAaT0AD7Mhe8DuK+/kE4aWYFMx/i0ZNi98hJclxb4e0OhQcZYUrvLjIaQ8e59Ui7txcvKMiJC1yftqpQoDw== @@ -5252,18 +5264,31 @@ vite@^2.9.1, vite@^2.9.13: optionalDependencies: fsevents "~2.3.2" -vitest@^0.9.3: - version "0.9.3" - resolved "https://registry.yarnpkg.com/vitest/-/vitest-0.9.3.tgz#18e7f80bc27d0f370a524647d73ecfa0236011ac" - integrity sha512-hKjqdBI732cV5giNLERyAsaJBebstrX5mvTbZr+jUDYUHnX1O4DpAJcHtqBOutuBi7lVIGQ5IF8eWvHHqbCHBA== +vite@^2.9.9: + version "2.9.15" + resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.15.tgz#2858dd5b2be26aa394a283e62324281892546f0b" + integrity sha512-fzMt2jK4vQ3yK56te3Kqpkaeq9DkcZfBbzHwYpobasvgYmP2SoAr6Aic05CsB4CzCZbsDv4sujX3pkEGhLabVQ== dependencies: - "@types/chai" "^4.3.0" + esbuild "^0.14.27" + postcss "^8.4.13" + resolve "^1.22.0" + rollup ">=2.59.0 <2.78.0" + optionalDependencies: + fsevents "~2.3.2" + +vitest@^0.12.10: + version "0.12.10" + resolved "https://registry.yarnpkg.com/vitest/-/vitest-0.12.10.tgz#c40204dce19eb713af6dfa2b75301940cb1259f0" + integrity sha512-TVoI6fM7rZ1zIMDjcviY8Dg5XIaPqBwDweaI3oUwvWqUz68cbM49CIHNMkF+UVoSjl94wXiBRdNhsT4ekgWuGA== + dependencies: + "@types/chai" "^4.3.1" "@types/chai-subset" "^1.3.3" chai "^4.3.6" + debug "^4.3.4" local-pkg "^0.4.1" - tinypool "^0.1.2" + tinypool "^0.1.3" tinyspy "^0.3.2" - vite "^2.9.1" + vite "^2.9.9" vue-demi@*: version "0.12.5"