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

Make template maker more testable #15

Merged
merged 9 commits into from
Dec 20, 2022

Conversation

Si3rr4wow
Copy link
Collaborator

The goal here is to make the file system and path injectable to facilitate unit testing of the template builder.

Comment on lines +19 to +21
'/home/a/index.ts',
'/home/b/c/deepA.mpg',
'/home/b/c/deepB.jpeg',
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 output is derived from the default implementation of readdirSync provided by the mocked file system. It might be better for this test to pass an override to make it more obvious how this expectation comes about.

@Si3rr4wow Si3rr4wow mentioned this pull request Dec 2, 2022
@robmorgan-tab robmorgan-tab marked this pull request as ready for review December 20, 2022 12:09
@robmorgan-tab robmorgan-tab merged commit 219cd79 into feat/template Dec 20, 2022
@robmorgan-tab robmorgan-tab deleted the dev/hexagonal-refactor branch December 20, 2022 12:09
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