-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer): remove unused
isCoreModule
(#11166)
- Loading branch information
Showing
4 changed files
with
28 additions
and
52 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
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
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
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 |
---|---|---|
|
@@ -8,23 +8,23 @@ | |
import type {RawSourceMap} from 'source-map'; | ||
import type {Config, TransformTypes} from '@jest/types'; | ||
|
||
export type ShouldInstrumentOptions = Pick< | ||
Config.GlobalConfig, | ||
| 'collectCoverage' | ||
| 'collectCoverageFrom' | ||
| 'collectCoverageOnlyFrom' | ||
| 'coverageProvider' | ||
> & { | ||
export interface ShouldInstrumentOptions | ||
extends Pick< | ||
Config.GlobalConfig, | ||
| 'collectCoverage' | ||
| 'collectCoverageFrom' | ||
| 'collectCoverageOnlyFrom' | ||
| 'coverageProvider' | ||
> { | ||
changedFiles?: Set<Config.Path>; | ||
sourcesRelatedToTestsInChangedFiles?: Set<Config.Path>; | ||
}; | ||
} | ||
|
||
export type Options = ShouldInstrumentOptions & | ||
Partial<{ | ||
isCoreModule: boolean; | ||
isInternalModule: boolean; | ||
}> & | ||
CallerTransformOptions; | ||
export interface Options | ||
extends ShouldInstrumentOptions, | ||
CallerTransformOptions { | ||
isInternalModule?: boolean; | ||
} | ||
|
||
// This is fixed in [email protected], but we can't upgrade yet since it's async | ||
interface FixedRawSourceMap extends Omit<RawSourceMap, 'version'> { | ||
|