Skip to content

Commit b984f09

Browse files
committed
test: run tests with all native plugins
1 parent f51756e commit b984f09

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
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_JS_PLUGIN: 1
207-
208-
- name: Test serve
209-
run: pnpm run test-serve
210-
env:
211-
_VITE_TEST_JS_PLUGIN: 1
203+
# - name: Test unit
204+
# run: pnpm run test-unit
205+
# env:
206+
# _VITE_TEST_JS_PLUGIN: 1
207+
208+
# - name: Test serve
209+
# run: pnpm run test-serve
210+
# env:
211+
# _VITE_TEST_JS_PLUGIN: 1
212212

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

packages/vite/src/node/config.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ export const configDefaults = Object.freeze({
746746
importGlobRestoreExtension: false,
747747
renderBuiltUrl: undefined,
748748
hmrPartialAccept: false,
749-
enableNativePlugin: process.env._VITE_TEST_JS_PLUGIN ? false : 'resolver',
749+
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN ? true : false,
750750
},
751751
future: {
752752
removePluginHookHandleHotUpdate: undefined,
@@ -1812,10 +1812,12 @@ export async function resolveConfig(
18121812
packageCache,
18131813
worker: resolvedWorkerOptions,
18141814
appType: config.appType ?? 'spa',
1815-
experimental: mergeWithDefaults(
1816-
configDefaults.experimental,
1817-
config.experimental ?? {},
1818-
),
1815+
experimental: {
1816+
importGlobRestoreExtension: false,
1817+
hmrPartialAccept: false,
1818+
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN ? true : false,
1819+
...config.experimental,
1820+
},
18191821
future:
18201822
config.future === 'warn'
18211823
? ({

0 commit comments

Comments
 (0)