Fix flakey preload test (#30969)
This commit is contained in:
parent
0c494af97c
commit
b408d73373
1 changed files with 2 additions and 1 deletions
|
@ -378,7 +378,8 @@ describe('Prefetching Links in viewport', () => {
|
|||
})()`)
|
||||
|
||||
console.log({ linkHrefs, scriptSrcs })
|
||||
expect(linkHrefs.some((href) => scriptSrcs.includes(href))).toBe(false)
|
||||
expect(scriptSrcs.some((src) => src.includes('pages/index-'))).toBe(true)
|
||||
expect(linkHrefs.some((href) => href.includes('pages/index-'))).toBe(false)
|
||||
})
|
||||
|
||||
it('should not duplicate prefetches', async () => {
|
||||
|
|
Loading…
Reference in a new issue