Skip to content

Commit 4ae394a

Browse files
committed
test: run tests with all native plugins
1 parent 40b5198 commit 4ae394a

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,
@@ -1769,10 +1767,12 @@ export async function resolveConfig(
17691767
packageCache,
17701768
worker: resolvedWorkerOptions,
17711769
appType: config.appType ?? 'spa',
1772-
experimental: mergeWithDefaults(
1773-
configDefaults.experimental,
1774-
config.experimental ?? {},
1775-
),
1770+
experimental: {
1771+
importGlobRestoreExtension: false,
1772+
hmrPartialAccept: false,
1773+
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN ? true : false,
1774+
...config.experimental,
1775+
},
17761776
future: config.future,
17771777

17781778
ssr,

0 commit comments

Comments
 (0)