mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
test: add typeCheck
test in minimal build (#28166)
This commit is contained in:
parent
d10cea11be
commit
a051035881
7
test/fixtures/minimal/nuxt.config.ts
vendored
7
test/fixtures/minimal/nuxt.config.ts
vendored
@ -1,10 +1,17 @@
|
||||
import { readFileSync } from 'node:fs'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const testWithInlineVue = process.env.EXTERNAL_VUE === 'false'
|
||||
|
||||
const nuxtEntry = fileURLToPath(new URL('../../../packages/nuxt/dist/index.mjs', import.meta.url))
|
||||
const isStubbed = readFileSync(nuxtEntry, 'utf-8').includes('const _module = jiti')
|
||||
|
||||
export default defineNuxtConfig({
|
||||
future: { compatibilityVersion: process.env.TEST_V4 === 'true' ? 4 : 3 },
|
||||
compatibilityDate: '2024-06-28',
|
||||
typescript: {
|
||||
typeCheck: isStubbed ? false : 'build',
|
||||
},
|
||||
pages: false,
|
||||
experimental: {
|
||||
externalVue: !testWithInlineVue,
|
||||
|
Loading…
Reference in New Issue
Block a user