test: reduce verbose log outputs

This commit is contained in:
Pooya Parsa 2023-08-15 07:35:56 +01:00
parent c335a6a2cf
commit c8cba7a062
4 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
console.log('[async] [sync]')
process.client && console.log('[async] [sync]')
const route = useRoute('suspense-async-parent-sync-child')
</script>

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
console.log('[sync]')
process.client && console.log('[sync]')
const route = useRoute('suspense-async-parent')
</script>

View File

@ -1,8 +1,8 @@
<script setup lang="ts">
console.log('[sync] [async]')
process.client && console.log('[sync] [async]')
const route = useRoute('suspense-async-parent-sync-child')
await new Promise(resolve => setTimeout(resolve, 500))
console.log(`[sync] [${route.params.parent}] [async] [${route.params.child}] running async data`)
process.client && console.log(`[sync] [${route.params.parent}] [async] [${route.params.child}] running async data`)
const data = route.params
</script>

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
console.log('[sync] [sync]')
process.client && console.log('[sync] [sync]')
const route = useRoute('suspense-sync-parent-sync-child')
</script>