mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
Update packages/codeflash/runtime/loop-runner.js
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
This commit is contained in:
parent
d13cdb559b
commit
b4ea8b6bd6
1 changed files with 6 additions and 1 deletions
|
|
@ -200,7 +200,12 @@ try {
|
|||
try {
|
||||
const jestRunner = require('jest-runner');
|
||||
TestRunner = jestRunner.default || jestRunner.TestRunner;
|
||||
jestRunnerAvailable = true;
|
||||
if (TestRunner && TestRunner.prototype && typeof TestRunner.prototype.runTests === 'function') {
|
||||
jestVersion = 30;
|
||||
jestRunnerAvailable = true;
|
||||
} else {
|
||||
jestRunnerAvailable = false;
|
||||
}
|
||||
} catch (e2) {
|
||||
jestRunnerAvailable = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue