parent
e5b1d50101
commit
aa1e9676f1
1 changed files with 10 additions and 6 deletions
|
@ -2115,12 +2115,16 @@ describe('Prerender', () => {
|
|||
const { version, files } = JSON.parse(contents)
|
||||
expect(version).toBe(1)
|
||||
|
||||
console.log(
|
||||
check.tests.map((item) => files.some((file) => item.test(file)))
|
||||
)
|
||||
expect(
|
||||
check.tests.every((item) => files.some((file) => item.test(file)))
|
||||
).toBe(true)
|
||||
try {
|
||||
expect(check.tests).toEqual(
|
||||
expect.toSatisfyAll((item) =>
|
||||
files.some((file) => item.test(file))
|
||||
)
|
||||
)
|
||||
} catch (error) {
|
||||
error.message += `\n\nFiles:\n${files.join('\n')}`
|
||||
throw error
|
||||
}
|
||||
|
||||
if (sep === '/') {
|
||||
expect(
|
||||
|
|
Loading…
Reference in a new issue