Skip to content
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

fix(testing): update v14 migration and migrate jest.config.ts to use export default #10035

Merged
merged 10 commits into from May 11, 2022

Conversation

barbados-clemens
Copy link
Contributor

@barbados-clemens barbados-clemens commented Apr 27, 2022

Current Behavior

linting errors after running jest migration
still using module.exports in a ts file

Expected Behavior

no linting errors after running migration
using export default in jest.config.ts

Related Issue(s)

Fixes #10021 #9982 #9973

@nx-cloud
Copy link

nx-cloud bot commented Apr 27, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 40c1b88. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 12 targets

Sent with 💌 from NxCloud.

@vercel
Copy link

vercel bot commented Apr 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nx-dev ⬜️ Ignored (Inspect) May 11, 2022 at 5:27PM (UTC)

@barbados-clemens barbados-clemens self-assigned this Apr 29, 2022
@barbados-clemens barbados-clemens changed the title fix(testing): handle linting errors after running v14 Jest migration fix(testing): update v14 migration and migrate jest.config.ts to use export default May 4, 2022
@barbados-clemens barbados-clemens force-pushed the update-14-jest-migration branch 4 times, most recently from 7b72219 to 41d4928 Compare May 4, 2022 22:04
@barbados-clemens barbados-clemens force-pushed the update-14-jest-migration branch 2 times, most recently from f7c243f to 7a6e1f5 Compare May 6, 2022 14:38
Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Can you rebase please?

tree.write(
'jest.config.js',
`
xit('should work with async functions', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this broken?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was never supported when the initial file was created IIRC for whatever reason this file got mostly reformatted. this whole thing needs to be rewritten to use the AST better and prevent the usage of runInContext + relative import error that we came across with the v14 jest migration.

@barbados-clemens barbados-clemens enabled auto-merge (squash) May 11, 2022 17:40
@barbados-clemens barbados-clemens merged commit ecf88a6 into master May 11, 2022
@barbados-clemens barbados-clemens deleted the update-14-jest-migration branch May 11, 2022 18:40
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants