Skip to content

Commit 897fe52

Browse files
Update documentation/docs/07-misc/02-testing.md
Co-authored-by: Rich Harris <[email protected]>
1 parent c938248 commit 897fe52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/07-misc/02-testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function multiplier(initial, k) {
7676

7777
### Using runes inside your test files
7878

79-
It is possible to use runes inside your test files. First ensure your bundler knows to route the file through the Svelte compiler before running the test by adding `.svelte` to the filename (e.g `multiplier.svelte.test.js`). After that, you can use runes inside your tests.
79+
Since Vitest processes your test files the same way as your source files, you can use runes inside your tests as long as the filename includes `.svelte`:
8080

8181
```js
8282
/// file: multiplier.svelte.test.js

0 commit comments

Comments
 (0)