Created
March 4, 2019 08:47
-
-
Save another-guy/bb73e285f404503046d4e9d88f62dc4b to your computer and use it in GitHub Desktop.
Jest test runner (pseudocode)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const jestTestRunnerForVSCodeE2E: ITestRunner = { | |
| run(testsRoot: string, clb: (error: Error, failures?: number) => void): void { | |
| try { | |
| const result = runJestTests(configuration); | |
| if (result.executionError) { | |
| clb(result.executionError); | |
| } else { | |
| clb(undefined, result.numberOfFailedTests); | |
| } | |
| } catch (e) { | |
| clb(e); | |
| } | |
| } | |
| }; | |
| module.exports = jestTestRunnerForVSCodeE2E; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment