test: add regression test for using `route` in template (#28967)

This commit is contained in:
Daniel Roe 2024-09-13 12:31:26 +01:00 committed by GitHub
parent 2fde562946
commit 35ebf8d90b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -99,10 +99,13 @@
<script setup lang="ts">
import { setupDevtoolsPlugin } from '@vue/devtools-api'
import { toDisplayString } from 'vue'
import { useRuntimeConfig } from '#imports'
import { importedRE, importedValue } from '~/some-exports'
import type { NuxtIsland, ServerOnlyComponent } from '#build/components'
toDisplayString(useRoute())
setupDevtoolsPlugin({}, () => {}) as any
const island = ref<InstanceType<typeof ServerOnlyComponent>>()
const config = useRuntimeConfig()