mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 01:53:55 +00:00
test: remove separate test for baseurl (#22467)
This commit is contained in:
parent
f7e2b2bf6e
commit
caf8329151
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -112,7 +112,6 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, windows-latest]
|
||||||
module: ['bundler', 'node']
|
module: ['bundler', 'node']
|
||||||
base: ['with-base-url', 'without-base-url']
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||||
@ -135,7 +134,6 @@ jobs:
|
|||||||
run: pnpm test:types
|
run: pnpm test:types
|
||||||
env:
|
env:
|
||||||
MODULE_RESOLUTION: ${{ matrix.module }}
|
MODULE_RESOLUTION: ${{ matrix.module }}
|
||||||
TS_BASE_URL: ${{ matrix.base }}
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
# autofix workflow will be triggered instead for PRs
|
# autofix workflow will be triggered instead for PRs
|
||||||
|
@ -19,7 +19,7 @@ export default defineUntypedSchema({
|
|||||||
*/
|
*/
|
||||||
reactivityTransform: false,
|
reactivityTransform: false,
|
||||||
|
|
||||||
// TODO: Remove in v3.6 when nitro has support for mocking traced dependencies
|
// TODO: Remove in v3.8 when nitro has support for mocking traced dependencies
|
||||||
// https://github.com/unjs/nitro/issues/1118
|
// https://github.com/unjs/nitro/issues/1118
|
||||||
/**
|
/**
|
||||||
* Externalize `vue`, `@vue/*` and `vue-router` when building.
|
* Externalize `vue`, `@vue/*` and `vue-router` when building.
|
||||||
|
8
test/fixtures/basic-types/nuxt.config.ts
vendored
8
test/fixtures/basic-types/nuxt.config.ts
vendored
@ -28,14 +28,6 @@ export default defineNuxtConfig({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
modules: [
|
modules: [
|
||||||
function (_, nuxt) {
|
|
||||||
// TODO: remove in v3.7
|
|
||||||
if (process.env.TS_BASE_URL === 'without-base-url') {
|
|
||||||
nuxt.hook('prepare:types', ({ tsConfig }) => {
|
|
||||||
delete tsConfig.compilerOptions!.baseUrl
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
function () {
|
function () {
|
||||||
addTypeTemplate({
|
addTypeTemplate({
|
||||||
filename: 'test.d.ts',
|
filename: 'test.d.ts',
|
||||||
|
Loading…
Reference in New Issue
Block a user