(callback: {
(): Promise<{
hasDeprecationWarnings: boolean;
options: Config.ProjectConfig & Config.GlobalConfig;
}>;
(): Promise<{
hasDeprecationWarnings: boolean;
options: Config.ProjectConfig & Config.GlobalConfig;
}>;
(): any;
})
| 2032 | |
| 2033 | describe('extensionsToTreatAsEsm', () => { |
| 2034 | async function matchErrorSnapshot(callback: { |
| 2035 | (): Promise<{ |
| 2036 | hasDeprecationWarnings: boolean; |
| 2037 | options: Config.ProjectConfig & Config.GlobalConfig; |
| 2038 | }>; |
| 2039 | (): Promise<{ |
| 2040 | hasDeprecationWarnings: boolean; |
| 2041 | options: Config.ProjectConfig & Config.GlobalConfig; |
| 2042 | }>; |
| 2043 | (): any; |
| 2044 | }) { |
| 2045 | await expect(callback()).rejects.toThrowErrorMatchingSnapshot(); |
| 2046 | } |
| 2047 | |
| 2048 | it('should pass valid config through', async () => { |
| 2049 | const {options} = await normalize( |
no test coverage detected