Skip to content

Commit

Permalink
Check global for jasmine
Browse files Browse the repository at this point in the history
Major jest version check isn't working
Moving to global.jasmine for the fix
  • Loading branch information
bpedersen authored Sep 30, 2021
1 parent 65b5722 commit 64fcdf6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/setupTestFramework.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Check to see if version before 27 where jasmine is default
const jestVersion = require("jest/package.json").version;
const [majorVersion] = jestVersion.split(".");
if (majorVersion < 27) {
if (global.jasmine) {
const originalDescribe = jasmine.getEnv().describe;

jasmine.getEnv().describe = (
Expand Down

0 comments on commit 64fcdf6

Please sign in to comment.