File tree Expand file tree Collapse file tree
packages/jest-transform/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77### Chore & Maintenance
88
9+ - ` [@jest/transform] ` Expose type ` TransformedSource ` ([ #9736 ] ( https://github.com/facebook/jest/pull/9736 ) )
10+
911### Performance
1012
1113## 25.2.4
1719### Fixes
1820
1921- ` [jest-circus] ` Fix type elision of jest-runtime imports ([ #9717 ] ( https://github.com/facebook/jest/pull/9717 ) )
20- - ` [@jest/transform] ` Fix coverage reporter for uncovered files without transformers, reverting ( [ #9460 ] ( https://github.com/facebook/jest/pull/9460 ) ) ([ #9724 ] ( https://github.com/facebook/jest/pull/9724 ) )
22+ - ` [@jest/transform] ` Fix coverage reporter for uncovered files without transformers, reverting [ #9460 ] ( https://github.com/facebook/jest/pull/9460 ) ([ #9724 ] ( https://github.com/facebook/jest/pull/9724 ) )
2123
2224## 25.2.3
2325
Original file line number Diff line number Diff line change @@ -15,5 +15,6 @@ export type {
1515 ShouldInstrumentOptions ,
1616 Options as TransformationOptions ,
1717 TransformResult ,
18+ TransformedSource ,
1819} from './types' ;
1920export { default as handlePotentialSyntaxError } from './enhanceUnexpectedTokenMessage' ;
Original file line number Diff line number Diff line change @@ -32,10 +32,9 @@ interface FixedRawSourceMap extends SourceMapWithVersion {
3232 version : number ;
3333}
3434
35- export type TransformedSource = {
36- code : string ;
37- map ?: FixedRawSourceMap | string | null ;
38- } ;
35+ export type TransformedSource =
36+ | { code : string ; map ?: FixedRawSourceMap | string | null }
37+ | string ;
3938
4039export type TransformResult = {
4140 code : string ;
@@ -70,5 +69,5 @@ export interface Transformer {
7069 sourcePath : Config . Path ,
7170 config : Config . ProjectConfig ,
7271 options ?: TransformOptions ,
73- ) => string | TransformedSource ;
72+ ) => TransformedSource ;
7473}
You can’t perform that action at this time.
0 commit comments