Skip to content

Commit 733537a

Browse files
committed
test: enable type checking of app tests
1 parent 9e276c3 commit 733537a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,13 @@ export default defineNuxtConfig({
246246
tsConfig: {
247247
compilerOptions: {
248248
noUnusedLocals: true,
249+
// TODO (jg): this isn't actually right since the app shouldn't be
250+
// importing `.ts` files directly. But there is an app test which
251+
// imports the CLI, which _does_ import `.ts` files directly.
252+
// Figure out a better solution later.
253+
allowImportingTsExtensions: true,
249254
},
255+
include: ['../test/unit/app/**/*.ts'],
250256
},
251257
nodeTsConfig: {
252258
compilerOptions: {

0 commit comments

Comments
 (0)