-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Formatting of jest.config.js #3889
Comments
any progress on this one? |
Hey @evtk, sorry about a late response to this! I tried to a new Nest app in a recent version of Nx, and it looks like the Jest config is being formatted properly. Files should be formatted using whatever prettier configs are in the workspace. So make sure that If the config isn't in the ignore file, what kind of library or app are you generating? |
Hi there @Cammisuli. We are using NX for our corporate mono repo full of Angular apps. So upon generating a new Angular lib, the jest config for this library is not added on a new line on the jest.config.js. |
What version of Nx are you using? |
@Cammisuli I'm running version: "@nrwl/workspace": "11.1.5", |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
After generating new apps or libs, the jest.config.js is expanded with a new entry. This happens on the same line as the last entry.
"<rootDir>/apps/myfirstapp","<rootDir>/libs/mynewlib"
Expected Behavior
It should be formatted on a newline:
and use double quotes might be a preference, but i think normally this would be single quotes.
The text was updated successfully, but these errors were encountered: