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

Get rid of temp module which also depends on rimraf #603

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

niik
Copy link
Member

@niik niik commented Nov 25, 2024

Targeting #602 but extracting this to be reviewed separately to not muddy #602 any more than necessary.

So I thought we had gotten rid of rimraf in #602 but it turns out our dependency on temp brings it right back in. We use temp to create temporary test directories that get cleaned up after the test run. The temp module adds a hook when the process exits which cleans up all created temp directories. I took a different approach and decided to clean up after each test run instead. Felt cleaner to me to clean up resources as close to their creation as possible even though it does require passing the test context around.

@niik niik requested review from sergiou87 and tidy-dev November 25, 2024 06:35
sergiou87
sergiou87 previously approved these changes Nov 25, 2024
Base automatically changed from rm-rf-rimraf to main November 26, 2024 11:02
@niik niik dismissed sergiou87’s stale review November 26, 2024 11:02

The base branch was changed.

@niik niik enabled auto-merge November 26, 2024 11:03
Copy link
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

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

@niik niik merged commit e7ff009 into main Nov 26, 2024
4 checks passed
@niik niik deleted the rm-rf-temp branch November 26, 2024 11:04
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