test: test with bundler module resolution (#20629)

Co-authored-by: pooya parsa <pyapar@gmail.com>
This commit is contained in:
Daniel Roe 2023-05-04 10:38:02 +01:00 committed by GitHub
parent c543ea8244
commit 47591c92ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -67,6 +67,10 @@ jobs:
timeout-minutes: 10 timeout-minutes: 10
needs: needs:
- build - build
strategy:
fail-fast: false
matrix:
module: ['bundler', 'node']
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -87,6 +91,8 @@ jobs:
- name: Test (types) - name: Test (types)
run: pnpm test:types run: pnpm test:types
env:
MODULE_RESOLUTION: ${{ matrix.module }}
lint: lint:
# autofix workflow will be triggered instead for PRs # autofix workflow will be triggered instead for PRs

View File

@ -15,9 +15,7 @@ export default defineNuxtConfig({
strict: true, strict: true,
tsConfig: { tsConfig: {
compilerOptions: { compilerOptions: {
// TODO: For testing (future) support for Node16-style module resolution. moduleResolution: process.env.MODULE_RESOLUTION
// See https://github.com/nuxt/nuxt/issues/18426 and https://github.com/nuxt/nuxt/pull/18431
// moduleResolution: 'Node16'
} }
} }
}, },