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

Extract an output:fixture command for manual testing #93

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

NullVoxPopuli
Copy link
Collaborator

Extracted from #80.

Will come in handy as we add more fixtures.


// apply the fixture on top of the generated app
copyWithTemplate(join(__dirname, 'fixture'), join(tmpDir.path, name), {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this change here was actually a bug as it didn't use the var from the caller

});
});

afterAll(async () => {
try {
await tmpDir.cleanup();
await tmp.cleanup();
} catch {
// if it fails to cleaup we don't want to break CI
}
});

return {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this structure got cleaned up quite a bit because the joins and all that are now in new-app

@NullVoxPopuli NullVoxPopuli mentioned this pull request Oct 1, 2024
2 tasks
@ef4 ef4 merged commit 60f7607 into main Oct 1, 2024
4 checks passed
@ef4 ef4 deleted the extract-fixture-testing branch October 1, 2024 16:02
@github-actions github-actions bot mentioned this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants