Skip to content

Commit 55d884b

Browse files
committed
test: run tests with all native plugins
1 parent 15690fc commit 55d884b

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
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

packages/vite/src/node/config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -724,9 +724,7 @@ export const configDefaults = Object.freeze({
724724
importGlobRestoreExtension: false,
725725
renderBuiltUrl: undefined,
726726
hmrPartialAccept: 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,
@@ -1761,10 +1759,12 @@ export async function resolveConfig(
17611759
packageCache,
17621760
worker: resolvedWorkerOptions,
17631761
appType: config.appType ?? 'spa',
1764-
experimental: mergeWithDefaults(
1765-
configDefaults.experimental,
1766-
config.experimental ?? {},
1767-
),
1762+
experimental: {
1763+
importGlobRestoreExtension: false,
1764+
hmrPartialAccept: false,
1765+
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN ? true : false,
1766+
...config.experimental,
1767+
},
17681768
future: config.future,
17691769

17701770
ssr,

0 commit comments

Comments
 (0)