Skip to content

Commit fa8b205

Browse files
authored
test(svelte): Avoid running vitest in watch mode (#10655)
To not run in watch mode we need to specifically run `vitest run` instead of `vitest` (missed this when reviewing #10350). - `yarn test` will run the test suites once - `yarn test:watch` will continue to run the tests in watch mode Also unstaled `yarn.lock` which we also seem to have missed in #10350
1 parent b8a8b45 commit fa8b205

File tree

2 files changed

+29
-5
lines changed

2 files changed

+29
-5
lines changed

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"clean": "rimraf build coverage sentry-svelte-*.tgz",
6060
"fix": "eslint . --format stylish --fix",
6161
"lint": "eslint . --format stylish",
62-
"test": "vitest",
62+
"test": "vitest run",
6363
"test:watch": "vitest --watch",
6464
"yalc:publish": "ts-node ../../scripts/prepack.ts && yalc publish build --push --sig"
6565
},

yarn.lock

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5913,6 +5913,18 @@
59135913
sirv "^2.0.3"
59145914
tiny-glob "^0.2.9"
59155915

5916+
"@sveltejs/[email protected]":
5917+
version "1.4.0"
5918+
resolved "https://registry.yarnpkg.com/@sveltejs/vite-plugin-svelte/-/vite-plugin-svelte-1.4.0.tgz#412a735de489ca731d0c780c2b410f45dd95b392"
5919+
integrity sha512-6QupI/jemMfK+yI2pMtJcu5iO2gtgTfcBdGwMZZt+lgbFELhszbDl6Qjh000HgAV8+XUA+8EY8DusOFk8WhOIg==
5920+
dependencies:
5921+
debug "^4.3.4"
5922+
deepmerge "^4.2.2"
5923+
kleur "^4.1.5"
5924+
magic-string "^0.26.7"
5925+
svelte-hmr "^0.15.1"
5926+
vitefu "^0.2.2"
5927+
59165928
"@szmarczak/http-timer@^1.1.2":
59175929
version "1.1.2"
59185930
resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421"
@@ -21294,6 +21306,13 @@ magic-string@^0.25.0, magic-string@^0.25.1, magic-string@^0.25.7:
2129421306
dependencies:
2129521307
sourcemap-codec "^1.4.8"
2129621308

21309+
magic-string@^0.26.7:
21310+
version "0.26.7"
21311+
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.26.7.tgz#caf7daf61b34e9982f8228c4527474dac8981d6f"
21312+
integrity sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==
21313+
dependencies:
21314+
sourcemap-codec "^1.4.8"
21315+
2129721316
magic-string@^0.30.0:
2129821317
version "0.30.0"
2129921318
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.0.tgz#fd58a4748c5c4547338a424e90fa5dd17f4de529"
@@ -30065,10 +30084,10 @@ supports-preserve-symlinks-flag@^1.0.0:
3006530084
resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
3006630085
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
3006730086

30068-
svelte-jester@^2.3.2:
30069-
version "2.3.2"
30070-
resolved "https://registry.yarnpkg.com/svelte-jester/-/svelte-jester-2.3.2.tgz#9eb818da30807bbcc940b6130d15b2c34408d64f"
30071-
integrity sha512-JtxSz4FWAaCRBXbPsh4LcDs4Ua7zdXgLC0TZvT1R56hRV0dymmNP+abw67DTPF7sQPyNxWsOKd0Sl7Q8SnP8kg==
30087+
svelte-hmr@^0.15.1:
30088+
version "0.15.3"
30089+
resolved "https://registry.yarnpkg.com/svelte-hmr/-/svelte-hmr-0.15.3.tgz#df54ccde9be3f091bf5f18fc4ef7b8eb6405fbe6"
30090+
integrity sha512-41snaPswvSf8TJUhlkoJBekRrABDXDMdpNpT2tfHIv4JuhgvHqLMhEPGtaQn0BmbNSTkuz2Ed20DF2eHw0SmBQ==
3007230091

3007330092
3007430093
version "3.49.0"
@@ -31940,6 +31959,11 @@ vite@^5.0.10:
3194031959
optionalDependencies:
3194131960
fsevents "~2.3.3"
3194231961

31962+
vitefu@^0.2.2:
31963+
version "0.2.5"
31964+
resolved "https://registry.yarnpkg.com/vitefu/-/vitefu-0.2.5.tgz#c1b93c377fbdd3e5ddd69840ea3aa70b40d90969"
31965+
integrity sha512-SgHtMLoqaeeGnd2evZ849ZbACbnwQCIwRH57t18FxcXoZop0uQu0uzlIhJBlF/eWVzuce0sHeqPcDo+evVcg8Q==
31966+
3194331967
vitefu@^0.2.4:
3194431968
version "0.2.4"
3194531969
resolved "https://registry.yarnpkg.com/vitefu/-/vitefu-0.2.4.tgz#212dc1a9d0254afe65e579351bed4e25d81e0b35"

0 commit comments

Comments
 (0)