We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We parse/analyse all throw'n errors of the user. All errors are put in the SDK. One exception now is errors thrown with the Promise/reject syntax.
See recursivelyFindThrowStatements.test.ts
recursivelyFindThrowStatements.test.ts
Here's how we could test for it:
test.skip("new Promise with reject", () => { const { statements: [funcOne], typeChecker, } = compileStatements( ` async function funcOne(a: string): boolean { const x = await Promise.all([funcTwo()]) return x[0]; } async function funcTwo(): Promise<boolean> { return new Promise((resolve, reject) => { reject(new Error('error')) }) } `, ) expect( recursivelyFindThrowStatements( funcOne as ts.FunctionDeclaration, typeChecker, ), ).toHaveLength(1) })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We parse/analyse all throw'n errors of the user. All errors are put in the SDK. One exception now is errors thrown with the Promise/reject syntax.
See
recursivelyFindThrowStatements.test.ts
Here's how we could test for it:
The text was updated successfully, but these errors were encountered: