Skip to content

Commit

Permalink
Make all Babel CallerData fields optional
Browse files Browse the repository at this point in the history
This is per Babel's own docs. Required to type tests correctly
without lots of filler values.

See https://babeljs.io/docs/en/options#caller
  • Loading branch information
fatso83 committed Feb 17, 2022
1 parent 29fdecc commit 7e0a7d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/jest-transform/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export type TransformResult = TransformTypes.TransformResult;

export interface CallerTransformOptions {
// names are copied from babel: https://babeljs.io/docs/en/options#caller
supportsDynamicImport: boolean;
supportsExportNamespaceFrom: boolean;
supportsStaticESM: boolean;
supportsTopLevelAwait: boolean;
supportsDynamicImport?: boolean;
supportsExportNamespaceFrom?: boolean;
supportsStaticESM?: boolean;
supportsTopLevelAwait?: boolean;
}

export interface ReducedTransformOptions extends CallerTransformOptions {
Expand Down

0 comments on commit 7e0a7d0

Please sign in to comment.