diff --git a/.changeset/small-mails-hunt.md b/.changeset/small-mails-hunt.md new file mode 100644 index 00000000..e02e73cf --- /dev/null +++ b/.changeset/small-mails-hunt.md @@ -0,0 +1,5 @@ +--- +'arui-scripts': patch +--- + +Добавлена трансформация .mjs файлов в конфигурации jest diff --git a/packages/arui-scripts/src/configs/jest/settings.js b/packages/arui-scripts/src/configs/jest/settings.js index 23cba351..0551676c 100644 --- a/packages/arui-scripts/src/configs/jest/settings.js +++ b/packages/arui-scripts/src/configs/jest/settings.js @@ -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'),