Unverified Commit 52c5aed0 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

Turbopack: add test for reexport cycles (#79792)

### What?

Add a test case to make sure the compilation doesn't hang on reexport cycles
parent 4ce28817
// TODO this test has not the expected behavior yet. But it's still here to check if the compilation doesn't crash or hang.
it('should error on reexport cycles', async () => {
await import('./a')
// TODO this is not working yet. We need to throw an SyntaxError in that case.
// await expect(import('./a')).rejects.toThrowError('')
})
it('should error on self reexport cycle', async () => {
await import('./self')
// TODO this is not working yet. We need to throw an SyntaxError in that case.
// await expect(import('./self')).rejects.toThrowError('')
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment