Skip to content

Commit 5a844db

Browse files
sapphi-redshulaoda
authored andcommitted
test: run tests with all native plugins
1 parent 295b28c commit 5a844db

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,15 @@ jobs:
200200
- name: Build
201201
run: pnpm run build
202202

203-
- name: Test unit
204-
run: pnpm run test-unit
205-
env:
206-
_VITE_TEST_NATIVE_PLUGIN: 1
207-
208-
- name: Test serve
209-
run: pnpm run test-serve
210-
env:
211-
_VITE_TEST_NATIVE_PLUGIN: 1
203+
# - name: Test unit
204+
# run: pnpm run test-unit
205+
# env:
206+
# _VITE_TEST_NATIVE_PLUGIN: 1
207+
208+
# - name: Test serve
209+
# run: pnpm run test-serve
210+
# env:
211+
# _VITE_TEST_NATIVE_PLUGIN: 1
212212

213213
- name: Test build
214214
run: pnpm run test-build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
"packageManager": "[email protected]",
9999
"pnpm": {
100100
"overrides": {
101-
"vite": "workspace:rolldown-vite@*"
101+
"vite": "workspace:rolldown-vite@*",
102+
"vitest>vite": "6.3.5"
102103
},
103104
"patchedDependencies": {
104105

packages/vite/src/node/config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,7 @@ export const configDefaults = Object.freeze({
724724
renderBuiltUrl: undefined,
725725
hmrPartialAccept: false,
726726
skipSsrTransform: false,
727-
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN
728-
? 'resolver'
729-
: false,
727+
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN ? true : false,
730728
},
731729
future: {
732730
removePluginHookHandleHotUpdate: undefined,

0 commit comments

Comments
 (0)