From 72144254065965f867662d86f9c7890dda808522 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Mon, 5 Jun 2023 19:51:20 -0700 Subject: [PATCH] Fixed state leak between multiple Jasmine instances run consecutively Fixes #207 --- lib/jasmine.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jasmine.js b/lib/jasmine.js index 205abee..4739904 100644 --- a/lib/jasmine.js +++ b/lib/jasmine.js @@ -45,7 +45,7 @@ class Jasmine extends RunnerBase { if (options.globals === false) { this.jasmine = jasmineCore.noGlobals().jasmine; } else { - this.jasmine = jasmineCore.boot(jasmineCore); + this.jasmine = jasmineCore.boot(true); } /** diff --git a/package.json b/package.json index be10425..aa897a0 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ ], "dependencies": { "glob": "^10.2.2", - "jasmine-core": "~5.0.0" + "jasmine-core": "github:jasmine/jasmine#npm-multiple-runs" }, "bin": "./bin/jasmine.js", "main": "./lib/jasmine.js",