File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 11import type { Transformer , TransformOptions } from '@jest/transform'
22import type { Config } from '@jest/types'
33import type * as _babel from 'babel__core'
4- import type * as _esbuild from 'esbuild'
54import type * as _ts from 'typescript'
65
76import type { ConfigSet } from './config'
@@ -27,7 +26,13 @@ declare module '@jest/types' {
2726 */
2827export type TBabelCore = typeof _babel
2928export type TTypeScript = typeof _ts
30- export type TEsBuild = typeof _esbuild
29+ // Stimulate `esbuild` type to avoid import `esbuild` while building the assets which are shipped to npm
30+ export interface TEsBuild {
31+ transformSync (
32+ input : string ,
33+ options ?: { loader : 'ts' | 'js' ; format : 'cjs' | 'esm' ; target : string } ,
34+ ) : { code : string ; map : string }
35+ }
3136/**
3237 * @internal
3338 */
You can’t perform that action at this time.
0 commit comments