tests(e2e): improve coverage

This commit is contained in:
Lucas Nogueira
2026-09-22 21:54:21 -03:00
parent 684feb2510
commit c8c373b48b
50 changed files with 1893 additions and 183 deletions
+4 -3
View File
@@ -276,7 +276,7 @@ describePlugin('fs', () => {
await file.close()
await file.stat()
}, `${dir}/closed.txt`)
expect(message.length).toBeGreaterThan(0)
expect(message).toMatch(/resource id \d+ is invalid/)
})
it('rejects paths outside the configured scope', async () => {
@@ -339,8 +339,9 @@ describePlugin('fs', () => {
unwatch()
return events
}, `${dir}/watched`)
expect(result.length).toBeGreaterThan(0)
expect(result.every((e) => typeof e.kind === 'string')).toBe(true)
expect(
result.some((e) => e.paths.some((p) => p.endsWith('touched.txt')))
).toBe(true)
}
)