Skip to content

Commit

Permalink
fix(jest): add transform for .mjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharchev committed Jun 20, 2024
1 parent 5da14fe commit 36747a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-mails-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'arui-scripts': patch
---

Добавлена трансформация .mjs файлов в конфигурации jest
1 change: 1 addition & 0 deletions packages/arui-scripts/src/configs/jest/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module.exports = {
},
transform: {
'^.+\\.jsx?$': require.resolve('./babel-transform'),
'^.+\\.mjs$': require.resolve('./babel-transform'),
'^.+\\.tsx?$': configs.jestUseTsJest
? require.resolve('ts-jest')
: require.resolve('./babel-transform'),
Expand Down

0 comments on commit 36747a6

Please sign in to comment.