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

Update nx config for tests #2685

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Update nx config for tests #2685

wants to merge 4 commits into from

Conversation

mfedderly
Copy link
Collaborator

@mfedderly mfedderly commented Aug 7, 2024

This fixes an issue where nx would cache test runs even if the underlying files have changed. This only happens if you execute tests like so:

pnpm lerna run test --scope=@turf/meta

This invokes the lerna/nx caching layer, and this will miss the fact that the actual code itself changed which should cause the tests to rerun. To fix this I extracted the source file inputs into a named input, and then used that in both build and test so that everything stays in sync.

Tests only require that the dependencies have been built, not the package itself
@mfedderly
Copy link
Collaborator Author

This might not be worth merging if we're taking #2682 instead, or it would at least need to be revisited.

@mfedderly
Copy link
Collaborator Author

I reworked this to just not conflict with that PR, we can merge this safely now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants