mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +00:00
test: test with bundler module resolution (#20629)
Co-authored-by: pooya parsa <pyapar@gmail.com>
This commit is contained in:
parent
c543ea8244
commit
47591c92ec
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -67,6 +67,10 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
needs:
|
||||
- build
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
module: ['bundler', 'node']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@ -87,6 +91,8 @@ jobs:
|
||||
|
||||
- name: Test (types)
|
||||
run: pnpm test:types
|
||||
env:
|
||||
MODULE_RESOLUTION: ${{ matrix.module }}
|
||||
|
||||
lint:
|
||||
# autofix workflow will be triggered instead for PRs
|
||||
|
4
test/fixtures/basic/nuxt.config.ts
vendored
4
test/fixtures/basic/nuxt.config.ts
vendored
@ -15,9 +15,7 @@ export default defineNuxtConfig({
|
||||
strict: true,
|
||||
tsConfig: {
|
||||
compilerOptions: {
|
||||
// TODO: For testing (future) support for Node16-style module resolution.
|
||||
// See https://github.com/nuxt/nuxt/issues/18426 and https://github.com/nuxt/nuxt/pull/18431
|
||||
// moduleResolution: 'Node16'
|
||||
moduleResolution: process.env.MODULE_RESOLUTION
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user