fix(jest-config): add mts and cts to default moduleFileExtensions config#14369
fix(jest-config): add mts and cts to default moduleFileExtensions config#14369SimenB merged 10 commits intojestjs:mainfrom yinm:add-mts-and-cts-to-moduleFileExtensions
mts and cts to default moduleFileExtensions config#14369Conversation
…Extensions` config
…nd `cts` by default
✅ Deploy Preview for jestjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
mrazauskas
left a comment
There was a problem hiding this comment.
Thanks. I left a couple of minor comments.
| ``` | ||
|
|
||
| We hope to support Prettier v3 seamlessly out of the box in a future version of Jest. See [this](https://github.com/jestjs/jest/issues/14305) tracking issue. | ||
|
|
There was a problem hiding this comment.
Could you split this change into separate PR, please?
There was a problem hiding this comment.
Sure. I'll do it later.
| /** @type {import('jest').Config} */ | ||
| const config = { | ||
| moduleFileExtensions: [...defaults.moduleFileExtensions, 'mts', 'cts'], | ||
| moduleDirectories: [...defaults.moduleDirectories, 'bower_components'], |
There was a problem hiding this comment.
why is this changed to moduleDirectories?
There was a problem hiding this comment.
I had the same question. My guess: if 'mts' and 'cts' get included in the default, the code in the example does nothing useful for the user. So @yinm was simply trying to find a way to keep the example useful.
There was a problem hiding this comment.
Yes, @mrazauskas's guess is right. I was trying to find a way to keep the example useful at 0f3e261.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
fixes #14149
This PR will only fix
Test plan
test locally