File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed
turbopack/crates/turbopack-tests/tests/execution/turbopack/cycle/reexport-cycle/input Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ export { a } from './b.js'
Original file line number Diff line number Diff line change
1
+ export { a } from './a.js'
Original file line number Diff line number Diff line change
1
+ // TODO this test has not the expected behavior yet. But it's still here to check if the compilation doesn't crash or hang.
2
+
3
+ it ( 'should error on reexport cycles' , async ( ) => {
4
+ await import ( './a' )
5
+ // TODO this is not working yet. We need to throw an SyntaxError in that case.
6
+ // await expect(import('./a')).rejects.toThrowError('')
7
+ } )
8
+
9
+ it ( 'should error on self reexport cycle' , async ( ) => {
10
+ await import ( './self' )
11
+ // TODO this is not working yet. We need to throw an SyntaxError in that case.
12
+ // await expect(import('./self')).rejects.toThrowError('')
13
+ } )
Original file line number Diff line number Diff line change
1
+ export { a } from './self.js'
You can’t perform that action at this time.
0 commit comments