Skip to content

Commit 7214425

Browse files
committed
Fixed state leak between multiple Jasmine instances run consecutively
Fixes #207
1 parent 51b60d2 commit 7214425

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/jasmine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Jasmine extends RunnerBase {
4545
if (options.globals === false) {
4646
this.jasmine = jasmineCore.noGlobals().jasmine;
4747
} else {
48-
this.jasmine = jasmineCore.boot(jasmineCore);
48+
this.jasmine = jasmineCore.boot(true);
4949
}
5050

5151
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
],
3333
"dependencies": {
3434
"glob": "^10.2.2",
35-
"jasmine-core": "~5.0.0"
35+
"jasmine-core": "github:jasmine/jasmine#npm-multiple-runs"
3636
},
3737
"bin": "./bin/jasmine.js",
3838
"main": "./lib/jasmine.js",

0 commit comments

Comments
 (0)