Skip to content

Commit

Permalink
frontend: update vitest to a later version
Browse files Browse the repository at this point in the history
Seems like there is a weird issue with vitest version <0.12.10 when
using mocked timers inside tests. More specifically, this issue:
vitest-dev/vitest#1379
This commit updates the version of vitest to a version which contains
a fix for this issue.
  • Loading branch information
GabrielBuragev committed Jan 19, 2023
1 parent 5eda6d5 commit 47b1961
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 14 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Expand Up @@ -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"
Expand Down
51 changes: 38 additions & 13 deletions frontend/yarn.lock
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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==
Expand All @@ -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"
Expand Down

0 comments on commit 47b1961

Please sign in to comment.