-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tests - Caching #67
base: main
Are you sure you want to change the base?
Tests - Caching #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for the PR! Left some comments.
projects/nx-verdaccio/src/plugin/utils/caching.utils.unit-test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements!
Left some comments.
Also could you please resolve the comments if you feel they are addressed?
I can always reopen them if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still found some suggestions and consistency issues that where mentioned in earlier feedback. Maybe read through all files & feedback and check them before requesting a review?
I have recheck every comment, and introduced consistency on every layer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking for duplicate tests and using the right helpers everywhere. The changelog was still formatted. I mentioned that already, linked the old comment and elaborate again why it saves time to do a self review first.
After this small adjustments I think we can get it in! 🥳
@@ -45,7 +41,7 @@ export function readTargetsCache( | |||
export function writeTargetsToCache( | |||
cachePath: string, | |||
results: Record<string, Partial<ProjectConfiguration>> | |||
) { | |||
): void { | |||
process.env.NX_CACHE_PROJECT_GRAPH !== 'false' && | |||
writeJsonFile(cachePath, results); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use writeJsonFileAsync instead of writeJsonFile to make the code non blocking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BioPhoton What do you think about doing it in seperate pr?
No description provided.