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

Commit 9981118

Browse files
committed
feat(test): add jest support to Mocha runner
1 parent e7d43fe commit 9981118

15 files changed

+1161
-201
lines changed

lib/mocha/jasmine-bridge/jasmine.bdd.ts

+7
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,11 @@ export function mappingBDD(jasmine: any, Mocha: any, global: any) {
4242
}
4343
};
4444
}
45+
46+
if (!global['fail']) {
47+
global['fail'] = function(error?: any) {
48+
const err = error ? error : new Error();
49+
throw err;
50+
}
51+
}
4552
}

0 commit comments

Comments
 (0)