Skip to content

Commit c1df0c8

Browse files
committed
feat: accept to transpile files with .mjs extension
1 parent c4bbb2b commit c1df0c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function getJestTransformConfig(jestConfig: JestConfig26 | JestConfig27): Option
2828

2929
export = {
3030
process(src: string, path: string, jestConfig: JestConfig26 | JestConfig27) {
31-
if (/\.(t|j)sx?$/.test(path)) {
31+
if (/\.(tsx?|jsx?|mjs)$/.test(path)) {
3232
const hash = xxh64(src).toString(16)
3333
const cacheKey = `${path}-${hash}`
3434
const maybeCachedEntry = Cache.get(cacheKey)

0 commit comments

Comments
 (0)