Skip to content

Commit 6cdcbbc

Browse files
committed
style(api): make it clear to jest that we do not instrument
1 parent a570609 commit 6cdcbbc

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ function getCacheKey(...args: any[]): any {
2323
return (defaultTransformer().getCacheKey as any)(...args)
2424
}
2525

26+
// we let jest doing the instrumentation, it does it well
27+
const canInstrument = false
28+
2629
const jestPreset = createJestPreset()
2730

2831
// for tests
@@ -37,6 +40,7 @@ export {
3740
createTransformer,
3841
tsProcess as process,
3942
getCacheKey,
43+
canInstrument,
4044
// extra ==================
4145
createJestPreset,
4246
jestPreset,

src/ts-jest-transformer.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,4 @@ export class TsJestTransformer implements jest.Transformer {
155155
filePath,
156156
)
157157
}
158-
159-
// we let jest doing the instrumentation, it does it well
160-
// get canInstrument() {}
161158
}

0 commit comments

Comments
 (0)