Skip to content

Commit

Permalink
test: skip vueuse test in v4 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 9, 2024
1 parent e6feb55 commit 58a12c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import type { NuxtIslandResponse } from '#app'

const isWebpack = process.env.TEST_BUILDER === 'webpack'
const isTestingAppManifest = process.env.TEST_MANIFEST !== 'manifest-off'
const isV4 = process.env.TEST_V4 === 'true'

await setup({
rootDir: fileURLToPath(new URL('./fixtures/basic', import.meta.url)),
Expand All @@ -21,6 +22,7 @@ await setup({
browser: true,
setupTimeout: (isWindows ? 360 : 120) * 1000,
nuxtConfig: {
future: { compatibilityVersion: isV4 ? 4 : 3 },
builder: isWebpack ? 'webpack' : 'vite',
buildDir: process.env.NITRO_BUILD_DIR,
nitro: { output: { dir: process.env.NITRO_OUTPUT_DIR } },
Expand Down Expand Up @@ -884,7 +886,7 @@ describe('head tags', () => {
expect(headHtml).toContain('<meta name="viewport" content="width=1024, initial-scale=1">')
})

it('legacy vueuse/head works', async () => {
it.skipIf(isV4)('legacy vueuse/head works', async () => {
const headHtml = await $fetch('/vueuse-head')
expect(headHtml).toContain('<title>using provides usehead and updateDOM - VueUse head polyfill test</title>')
})
Expand Down
1 change: 0 additions & 1 deletion test/fixtures/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ declare module 'nitropack' {
}

export default defineNuxtConfig({
future: { compatibilityVersion: process.env.TEST_V4 === 'true' ? 4 : 3 },
app: {
pageTransition: true,
layoutTransition: true,
Expand Down

0 comments on commit 58a12c1

Please sign in to comment.