Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: index 'detects' appropriate runner
- Loading branch information
Showing
4 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./dist/by-require'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./dist/by-spawn'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { bySpawn } from './by-spawn'; | ||
import type { Config } from '@jest/types'; | ||
import type { JestEnvironment } from '@jest/environment'; | ||
import type Runtime from 'jest-runtime'; | ||
import type { TestResult } from '@jest/test-result'; | ||
|
||
export async function detect( | ||
globalConfig: Config.GlobalConfig, | ||
config: Config.ProjectConfig, | ||
environment: JestEnvironment, | ||
runtime: Runtime, | ||
testPath: string, | ||
): Promise<TestResult> { | ||
return bySpawn(globalConfig, config, environment, runtime, testPath); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { bySpawn } from './by-spawn'; | ||
import { detect } from './detect'; | ||
|
||
export = bySpawn; | ||
export = detect; |