Skip to content

Commit

Permalink
Testing: Allow TypeScript modules for transpiled packages (#29873)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Mar 15, 2021
1 parent bf159e6 commit 6be7320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const glob = require( 'glob' ).sync;

// Finds all packages which are transpiled with Babel to force Jest to use their source code.
const transpiledPackageNames = glob( 'packages/*/src/index.js' ).map(
const transpiledPackageNames = glob( 'packages/*/src/index.{js,ts,tsx}' ).map(
( fileName ) => fileName.split( '/' )[ 1 ]
);

Expand Down

0 comments on commit 6be7320

Please sign in to comment.