You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run my tests, every suite fails with the "is not a function" error in the issue title. Here are the full details for one failure:
FAIL app/javascript/util/map.test.ts
● Test suite failed to run
TypeError: (0 , _loadBabelConfig.loadPartialConfigAsync) is not a function
at loadBabelConfigAsync (node_modules/babel-jest/build/index.js:197:73)
at ScriptTransformer._getCacheKeyAsync (node_modules/@jest/transform/build/ScriptTransformer.js:313:37)
at ScriptTransformer._getFileCachePathAsync (node_modules/@jest/transform/build/ScriptTransformer.js:357:33)
at ScriptTransformer.transformSourceAsync (node_modules/@jest/transform/build/ScriptTransformer.js:637:38)
at ScriptTransformer._transformAndBuildScriptAsync (node_modules/@jest/transform/build/ScriptTransformer.js:717:46)
at ScriptTransformer.transformAsync (node_modules/@jest/transform/build/ScriptTransformer.js:789:25)
Digging into this a bit, I found that the problem was probably an outdated @babel/core. I updated it and then started getting an error similar to storybookjs/storybook#12893, but I followed the recommendation to remove node_modules and reinstall them, and that seems to have fixed things.
Should the deps be updated to require a recent-enough version? (I can track down what that version should be and submit a PR.)
When I run my tests, every suite fails with the "is not a function" error in the issue title. Here are the full details for one failure:
This is my jest config:
Versions:
jest: 27.2.4
babel-jest: 27.2.4
vite-jest: 0.0.3
Any ideas?
The text was updated successfully, but these errors were encountered: