Skip to content

Commit d505c73

Browse files
sheremet-vaAriPerkkiohi-ogawa
authored
chore: add blog post for Vitest 4.1 (#9775)
Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com> Co-authored-by: Hiroshi Ogawa <hi.ogawa.zz@gmail.com>
1 parent 3f8326c commit d505c73

File tree

9 files changed

+499
-1
lines changed

9 files changed

+499
-1
lines changed

docs/blog/vitest-4-1.md

Lines changed: 483 additions & 0 deletions
Large diffs are not rendered by default.

docs/config/browser/detailspanelposition.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,18 @@ export default defineConfig({
2626
},
2727
})
2828
```
29+
30+
## Example
31+
32+
::: tabs
33+
== bottom
34+
<center>
35+
<img alt="Vitest UI with details at the bottom" img-light src="/ui/light-ui-details-bottom.png">
36+
<img alt="Vitest UI with details at the bottom" img-dark src="/ui/dark-ui-details-bottom.png">
37+
</center>
38+
== right
39+
<center>
40+
<img alt="Vitest UI with details at the right side" img-light src="/ui/light-ui-details-right.png">
41+
<img alt="Vitest UI with details at the right side" img-dark src="/ui/dark-ui-details-right.png">
42+
</center>
43+
:::

docs/config/detectasyncleaks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Uses [`node:async_hooks`](https://nodejs.org/api/async_hooks.html) to track crea
1919
For example if your code has `setTimeout` calls that execute the callback after tests have finished, you will see following error:
2020

2121
```sh
22-
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Async Leaks 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
22+
⎯⎯⎯⎯⎯⎯⎯⎯ Async Leaks 1 ⎯⎯⎯⎯⎯⎯⎯⎯
2323

2424
Timeout leaking in test/checkout-screen.test.tsx
2525
26|

docs/public/og-vitest-4-1.jpg

788 KB
Loading
134 KB
Loading
135 KB
Loading
136 KB
Loading
133 KB
Loading
363 KB
Loading

0 commit comments

Comments
 (0)