( caseName: string, callback: (context: ReturnType<typeof nextTestSetup>) => void )
| 3 | import path from 'path' |
| 4 | |
| 5 | const describeCase = ( |
| 6 | caseName: string, |
| 7 | callback: (context: ReturnType<typeof nextTestSetup>) => void |
| 8 | ) => { |
| 9 | describe(caseName, () => { |
| 10 | const context = nextTestSetup({ |
| 11 | files: path.join(__dirname, caseName), |
| 12 | skipDeployment: true, |
| 13 | }) |
| 14 | if (context.skipped) return |
| 15 | |
| 16 | callback(context) |
| 17 | }) |
| 18 | } |
| 19 | describe('Instrumentation Hook', () => { |
| 20 | describeCase('with-esm-import', ({ next }) => { |
| 21 | it('with-esm-import should run the instrumentation hook', async () => { |
no test coverage detected