Skip to content

Commit 6f290a2

Browse files
committed
test: run tests with all native plugins
1 parent f2f4529 commit 6f290a2

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
@@ -730,9 +730,7 @@ export const configDefaults = Object.freeze({
730730
importGlobRestoreExtension: false,
731731
renderBuiltUrl: undefined,
732732
hmrPartialAccept: false,
733-
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN
734-
? 'resolver'
735-
: false,
733+
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN ? true : false,
736734
},
737735
future: {
738736
removePluginHookHandleHotUpdate: undefined,
@@ -1776,10 +1774,12 @@ export async function resolveConfig(
17761774
packageCache,
17771775
worker: resolvedWorkerOptions,
17781776
appType: config.appType ?? 'spa',
1779-
experimental: mergeWithDefaults(
1780-
configDefaults.experimental,
1781-
config.experimental ?? {},
1782-
),
1777+
experimental: {
1778+
importGlobRestoreExtension: false,
1779+
hmrPartialAccept: false,
1780+
enableNativePlugin: process.env._VITE_TEST_NATIVE_PLUGIN ? true : false,
1781+
...config.experimental,
1782+
},
17831783
future:
17841784
config.future === 'warn'
17851785
? ({

0 commit comments

Comments
 (0)