Skip to content

Commit c00a103

Browse files
committed
test: setup tests for rolldown-vite + plugin-react
1 parent abecbc2 commit c00a103

File tree

12 files changed

+20
-73
lines changed

12 files changed

+20
-73
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ jobs:
9393
- name: Test SWC
9494
run: pnpm --filter ./packages/plugin-react-swc run test
9595

96+
- name: Setup rolldown-vite
97+
run: |
98+
sed -i "s/overrides:/overrides:\n vite: catalog:rolldown-vite/" pnpm-workspace.yaml
99+
pnpm i --no-frozen-lockfile
100+
101+
- name: Test serve (rolldown-vite)
102+
run: pnpm run test-serve
103+
104+
- name: Test build (rolldown-vite)
105+
run: pnpm run test-build
106+
96107
lint:
97108
if: github.repository == 'vitejs/vite-plugin-react'
98109
timeout-minutes: 10

playground/class-components/__tests__/oxc/class-components.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/hmr-false/__tests__/oxc/hmr-false.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/hook-with-jsx/__tests__/oxc/hook-with-jsx.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/mdx/__tests__/oxc/mdx.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/react-env/__tests__/oxc/react.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/react-sourcemap/__tests__/oxc/react-sourcemap.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/react/__tests__/oxc/react.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/ssr-react/__tests__/oxc/ssr-react.spec.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

playground/vitest.config.e2e.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { resolve } from 'node:path'
2-
import { defaultExclude, defineConfig } from 'vitest/config'
2+
import { defineConfig } from 'vitest/config'
33

44
const timeout = process.env.PWDEBUG ? Infinity : process.env.CI ? 20_000 : 5_000
55

6-
const isBelowNode20 = +process.versions.node.split('.')[0] < 20
7-
86
export default defineConfig({
97
resolve: {
108
alias: {
@@ -14,9 +12,6 @@ export default defineConfig({
1412
test: {
1513
pool: 'forks',
1614
include: ['./playground/**/*.spec.[tj]s'],
17-
exclude: isBelowNode20
18-
? ['**/__tests__/oxc/**', ...defaultExclude] // plugin-oxc only supports node >= 20
19-
: defaultExclude,
2015
setupFiles: ['./playground/vitestSetup.ts'],
2116
globalSetup: ['./playground/vitestGlobalSetup.ts'],
2217
testTimeout: timeout,

0 commit comments

Comments
 (0)