Skip to content

fix: make maven and pnpm tests immutable #186

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

Merged
merged 2 commits into from
Apr 25, 2025

Conversation

ruromero
Copy link
Collaborator

Description

The effective-poms were being deleted and not restored. This fix mocks any interaction with files and temp dirs to make unit tests immutable.
The pnpm integration tests couldn't be re-executed because the imported library @hapi/joi was causing a problem in the node_modules that required to delete the folder each time

Checklist

  • I have followed this repository's contributing guidelines.
  • I will adhere to the project's code of conduct.

Signed-off-by: Ruben Romero Montes <[email protected]>
Signed-off-by: Ruben Romero Montes <[email protected]>
@ruromero ruromero requested a review from Strum355 April 25, 2025 10:05
@ruromero ruromero force-pushed the fix/mock-mvn-output branch from 858b2c0 to 85a2d3a Compare April 25, 2025 10:19
@ruromero ruromero enabled auto-merge (squash) April 25, 2025 10:25
@ruromero ruromero merged commit be4e1be into trustification:main Apr 25, 2025
4 checks passed
@ruromero ruromero deleted the fix/mock-mvn-output branch April 25, 2025 11:02
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