Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
feat(test): add jest support to Mocha runner
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed May 9, 2018
1 parent e7d43fe commit 9981118
Show file tree
Hide file tree
Showing 15 changed files with 1,161 additions and 201 deletions.
7 changes: 7 additions & 0 deletions lib/mocha/jasmine-bridge/jasmine.bdd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@ export function mappingBDD(jasmine: any, Mocha: any, global: any) {
}
};
}

if (!global['fail']) {
global['fail'] = function(error?: any) {
const err = error ? error : new Error();
throw err;
}
}
}
Loading

0 comments on commit 9981118

Please sign in to comment.