Skip to content

Commit 144de2c

Browse files
committed
Merge branch 'main' into fix-fail-ci-obsolete-snapshot
2 parents bc69ca3 + dfe81a6 commit 144de2c

File tree

349 files changed

+10571
-5962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+10571
-5962
lines changed

.github/renovate.json5

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
// manually bumping
2323
"node",
2424
"vite",
25-
// bumping breaks coverage
26-
// https://github.com/vitest-dev/vitest/actions/runs/12121857184/job/33793728382?pr=6920
27-
"vue",
2825
// we patch these packages
2926
"@types/chai",
3027
"@sinonjs/fake-timers",

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ concurrency:
1919

2020
env:
2121
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
22+
VITEST_GENERATE_UI_TOKEN: 'true'
2223

2324
jobs:
2425
lint:
@@ -156,3 +157,39 @@ jobs:
156157

157158
- name: Test Browser (webdriverio)
158159
run: pnpm run test:browser:webdriverio
160+
161+
test-rolldown:
162+
needs: changed
163+
# macos-latest is the fastes one
164+
name: 'Rolldown&Test: node-20, macos-latest'
165+
if: needs.changed.outputs.should_skip != 'true'
166+
runs-on: macos-latest
167+
168+
timeout-minutes: 30
169+
170+
steps:
171+
- uses: actions/checkout@v4
172+
173+
- uses: ./.github/actions/setup-and-cache
174+
with:
175+
node-version: 20
176+
177+
- uses: browser-actions/setup-chrome@c785b87e244131f27c9f19c1a33e2ead956ab7ce # v1.7.3
178+
179+
- name: Install
180+
run: pnpm add vite@npm:rolldown-vite && git add . && git commit -m "ci" && pnpm i --prefer-offline --no-frozen-lockfile
181+
182+
- name: Install Playwright Dependencies
183+
run: pnpm exec playwright install --with-deps --only-shell
184+
185+
- name: Build
186+
run: pnpm run build
187+
188+
- name: Test
189+
run: pnpm run test:ci
190+
191+
- name: Test Examples
192+
run: pnpm run test:examples
193+
194+
- name: Test Browser (playwright)
195+
run: pnpm run test:browser:playwright

.github/workflows/cr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
- name: Build
4242
run: pnpm build
4343
env:
44-
NO_VITE_TEST_WATCHER_DEBUG: '1'
44+
VITEST_GENERATE_UI_TOKEN: 'true'
45+
VITE_TEST_WATCHER_DEBUG: 'false'
4546

4647
- name: Publish to StackBlitz
4748
run: pnpx pkg-pr-new publish --compact --no-template --pnpm './packages/*'

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ permissions:
99
contents: write
1010
id-token: write
1111

12+
env:
13+
VITEST_GENERATE_UI_TOKEN: 'true'
14+
VITE_TEST_WATCHER_DEBUG: 'false'
15+
1216
jobs:
1317
publish:
1418
if: github.repository == 'vitest-dev/vitest'
@@ -36,8 +40,6 @@ jobs:
3640

3741
- name: Build
3842
run: pnpm build
39-
env:
40-
NO_VITE_TEST_WATCHER_DEBUG: '1'
4143

4244
- name: Publish to npm
4345
run: pnpm run publish-ci ${{ github.ref_name }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ test/cli/fixtures/browser-multiple/basic-*
3232
# exclude static html reporter folder
3333
test/browser/html/
3434
test/core/html/
35+
.vitest-attachments

.vscode/settings.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{
2-
"cSpell.words": [
3-
"birpc",
4-
"unmock"
5-
],
6-
7-
// Enable the ESlint flat config support
8-
"eslint.useFlatConfig": true,
9-
102
// Disable the default formatter, use eslint instead
113
"prettier.enable": false,
124
"editor.formatOnSave": false,

docs/.vitepress/components.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export {}
77
/* prettier-ignore */
88
declare module 'vue' {
99
export interface GlobalComponents {
10+
ArrowDown: typeof import('./components/ArrowDown.vue')['default']
1011
BlogIndex: typeof import('./components/BlogIndex.vue')['default']
12+
Box: typeof import('./components/Box.vue')['default']
1113
Contributors: typeof import('./components/Contributors.vue')['default']
1214
CourseLink: typeof import('./components/CourseLink.vue')['default']
1315
FeaturesList: typeof import('./components/FeaturesList.vue')['default']
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<span class="arrow-down">
3+
<span class="arrow-line" />
4+
<span class="arrow-head" />
5+
</span>
6+
</template>
7+
8+
<style scoped>
9+
.arrow-down {
10+
display: flex;
11+
flex-direction: column;
12+
align-items: center;
13+
}
14+
15+
.arrow-line {
16+
height: 1rem;
17+
width: 0.2rem;
18+
background-color: var(--vp-c-brand-1);
19+
}
20+
21+
.arrow-head {
22+
height: 1rem;
23+
width: 1rem;
24+
background-color: var(--vp-c-brand-1);
25+
clip-path: polygon(100% 0, 0 0, 50% 100%);
26+
}
27+
</style>

docs/.vitepress/components/Box.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<span class="box">
3+
<slot />
4+
</span>
5+
</template>
6+
7+
<style scoped>
8+
.box {
9+
display: flex;
10+
width: 100%;
11+
align-items: center;
12+
justify-content: center;
13+
text-align: center;
14+
border: 0.1rem solid var(--vp-c-brand-1);
15+
border-radius: 15px;
16+
padding: 1rem 2rem;
17+
}
18+
</style>

docs/.vitepress/config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,10 @@ function guide(): DefaultTheme.SidebarItem[] {
496496
text: 'Mocking',
497497
link: '/guide/mocking',
498498
},
499+
{
500+
text: 'Parallelism',
501+
link: '/guide/parallelism',
502+
},
499503
{
500504
text: 'Testing Types',
501505
link: '/guide/testing-types',
@@ -512,6 +516,10 @@ function guide(): DefaultTheme.SidebarItem[] {
512516
text: 'Test Context',
513517
link: '/guide/test-context',
514518
},
519+
{
520+
text: 'Test Annotations',
521+
link: '/guide/test-annotations',
522+
},
515523
{
516524
text: 'Environment',
517525
link: '/guide/environment',

0 commit comments

Comments
 (0)