Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d1276d9
feat: implement `aroundEach` and `aroundAll` hooks
sheremet-va Jan 14, 2026
5b10b8a
chore: add todo
sheremet-va Jan 14, 2026
45bdfbb
Merge branch 'main' of github.com:vitest-dev/vitest into feat/around-…
sheremet-va Jan 22, 2026
f262b50
fix: support proper timeout
sheremet-va Jan 22, 2026
2873923
test: add AsyncLocalStorage test
sheremet-va Jan 23, 2026
f85b92e
feat: support fixtures in aroundEach
sheremet-va Jan 23, 2026
5763dbd
test: fix tests
sheremet-va Jan 23, 2026
2bf22ae
feat: implement `aroundAll`
sheremet-va Jan 23, 2026
6cacc91
fix: support aroundEach globally
sheremet-va Jan 23, 2026
153cd14
doc: update aroundAll example
sheremet-va Jan 23, 2026
0df37a7
test: fix afterAll
sheremet-va Jan 23, 2026
a5e12fe
fix: cleanup aroundEach fixtures after aroundEach
sheremet-va Jan 23, 2026
7919755
docs: improve test API docs, add aroundEach/aroundAll
sheremet-va Jan 23, 2026
8e90f0f
docs: delete unused api/index.md
sheremet-va Jan 23, 2026
deb896e
docs: fix links
sheremet-va Jan 23, 2026
897f0e2
refactor: throw a specific error instead of checking the message
sheremet-va Jan 23, 2026
da34a78
chore: add test.describe
sheremet-va Jan 23, 2026
f5f43b8
chore: remove
sheremet-va Jan 23, 2026
c6d7d26
chore: add redirect on netlify
sheremet-va Jan 23, 2026
60b9a65
chore: cleanup
sheremet-va Jan 23, 2026
60d3fbb
fix: throw an error if callback is called multiple times
sheremet-va Jan 24, 2026
15b9872
refactor: rename errors
sheremet-va Jan 24, 2026
c706b9e
docs: clarify `runSuite` warning
sheremet-va Jan 24, 2026
a2289bf
fix: correctly mark tests as skiped if setup in aroundAll throws any …
sheremet-va Jan 24, 2026
f7db72a
fix: update snapshot
sheremet-va Jan 24, 2026
be977c1
test: confirm test level fixtures lifecycle is correct
sheremet-va Jan 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export default ({ mode }: { mode: string }) => {
title: 'Vitest',
items: [
{ text: 'Guides', link: '/guide/' },
{ text: 'API', link: '/api/' },
{ text: 'API', link: '/api/test' },
{ text: 'Config', link: '/config/' },
],
},
Expand Down Expand Up @@ -195,7 +195,7 @@ export default ({ mode }: { mode: string }) => {

nav: [
{ text: 'Guides', link: '/guide/', activeMatch: '^/guide/' },
{ text: 'API', link: '/api/', activeMatch: '^/api/' },
{ text: 'API', link: '/api/test', activeMatch: '^/api/' },
{ text: 'Config', link: '/config/', activeMatch: '^/config/' },
{
text: 'Blog',
Expand Down Expand Up @@ -961,7 +961,20 @@ export default ({ mode }: { mode: string }) => {
'/api': [
{
text: 'Test API Reference',
link: '/api/',
items: [
{
text: 'Test',
link: '/api/test',
},
{
text: 'Describe',
link: '/api/describe',
},
{
text: 'Hooks',
link: '/api/hooks',
},
],
},
{
text: 'Mocks',
Expand Down
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export default {
return true
}
const url = new URL(to, location.href)
if (url.pathname === '/api/' || url.pathname === '/api' || url.pathname === '/api/index.html') {
setTimeout(() => { router.go(`/api/test`) })
return false
}
if (!url.hash) {
return true
}
Expand Down
Loading
Loading