Skip to content

Commit

Permalink
resolve jasmine when env
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed May 27, 2021
1 parent 6eb4c92 commit c144c6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jest-runner/src/runTest.ts
Expand Up @@ -110,7 +110,9 @@ async function runTestInternal(
await transformer.requireAndTranspileModule(testEnvironment);
const testFramework: TestFramework =
await transformer.requireAndTranspileModule(
process.env.JEST_JASMINE === '1' ? 'jest-jasmine2' : config.testRunner,
process.env.JEST_JASMINE === '1'
? require.resolve('jest-jasmine2')
: config.testRunner,
);
const Runtime: typeof RuntimeClass = interopRequireDefault(
config.moduleLoader
Expand Down

0 comments on commit c144c6e

Please sign in to comment.