From a0510358817bd98ab585d2e933054a2eb630b3e6 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 16 Jul 2024 11:08:21 +0100 Subject: [PATCH] test: add `typeCheck` test in minimal build (#28166) --- test/fixtures/minimal/nuxt.config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/fixtures/minimal/nuxt.config.ts b/test/fixtures/minimal/nuxt.config.ts index cebff6569b..acbeed7e43 100644 --- a/test/fixtures/minimal/nuxt.config.ts +++ b/test/fixtures/minimal/nuxt.config.ts @@ -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,