mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
chore: update
This commit is contained in:
parent
05f8a29060
commit
e8764efe27
3
test/fixtures/suspense/pages/index.vue
vendored
3
test/fixtures/suspense/pages/index.vue
vendored
@ -15,8 +15,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
function trigger () {
|
||||
async function trigger () {
|
||||
document.getElementById('btn-a').click()
|
||||
await new Promise(resolve => setTimeout(resolve, 10))
|
||||
document.getElementById('btn-b').click()
|
||||
}
|
||||
</script>
|
||||
|
2
test/fixtures/suspense/pages/target.vue
vendored
2
test/fixtures/suspense/pages/target.vue
vendored
@ -7,5 +7,5 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
await new Promise(resolve => setTimeout(resolve, 100))
|
||||
await new Promise(resolve => setTimeout(resolve, 200))
|
||||
</script>
|
||||
|
@ -13,7 +13,7 @@ await Promise.all([
|
||||
// clear nuxt build files
|
||||
...dirs.map(dir => fs.remove(`${dir}/.nuxt`)),
|
||||
// clear vite cache
|
||||
...dirs.map(dir => fs.remove(`${dir}/node_modules/.vite`), { force: true })
|
||||
...dirs.map(dir => fs.remove(`${dir}/node_modules/.cache`), { force: true })
|
||||
])
|
||||
|
||||
await Promise.all(
|
||||
|
Loading…
Reference in New Issue
Block a user