Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
test: test runtime compiler in dev + webpack matrices as well
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 6, 2023
1 parent 1ef1973 commit 3f6acce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 3 additions & 4 deletions test/fixtures/runtime-compiler/nuxt.config.ts
@@ -1,9 +1,8 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
vue: {
runtimeCompiler: true
},
experimental: {
runtimeVueCompiler: true,
externalVue: false
}
},
builder: process.env.TEST_BUILDER as 'webpack' | 'vite' ?? 'vite'
})
7 changes: 6 additions & 1 deletion test/runtime-compiler.test.ts
Expand Up @@ -3,12 +3,17 @@ import { isWindows } from 'std-env'
import { describe, it, expect } from 'vitest'
import { setup, $fetch } from '@nuxt/test-utils'
import { expectNoClientErrors, renderPage } from './utils'
const isWebpack = process.env.TEST_BUILDER === 'webpack'

await setup({
rootDir: fileURLToPath(new URL('./fixtures/runtime-compiler', import.meta.url)),
dev: process.env.TEST_ENV === 'dev',
server: true,
browser: true,
setupTimeout: (isWindows ? 240 : 120) * 1000
setupTimeout: (isWindows ? 240 : 120) * 1000,
nuxtConfig: {
builder: isWebpack ? 'webpack' : 'vite'
}
})

describe('test basic config', () => {
Expand Down

0 comments on commit 3f6acce

Please sign in to comment.