We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f370e commit bdcb815Copy full SHA for bdcb815
1 file changed
test/basic.test.ts
@@ -113,9 +113,11 @@ describe('route rules', () => {
113
it('should not extract payload for `ssr: false` routes with useAsyncData (#34279)', async () => {
114
const html = await $fetch<string>('/route-rules/spa-async-data')
115
const { attrs } = parseData(html)
116
- expect(attrs['data-ssr']).toEqual('false')
117
- expect(attrs['data-src']).toBeUndefined()
118
- expect(html).not.toContain('/route-rules/spa-async-data/_payload.json')
+ if (isRenderingJson) {
+ expect(attrs['data-ssr']).toEqual('false')
+ expect(attrs['data-src']).toBeUndefined()
119
+ }
120
+ expect(html).not.toContain(`/route-rules/spa-async-data/_payload.${isRenderingJson ? 'json' : 'js'}`)
121
await expectNoClientErrors('/route-rules/spa-async-data')
122
})
123
0 commit comments