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

testing "fun" #34

Merged
merged 5 commits into from
Aug 25, 2023
Merged

testing "fun" #34

merged 5 commits into from
Aug 25, 2023

Conversation

mmcc
Copy link
Contributor

@mmcc mmcc commented Aug 24, 2023

The CLI is getting complex enough that we should be testing already, but definitely if we're going to do things like the crazy pants stuff in #33.

assert(findConsoleMessage(warningSpy, /Directory does not exist/i), 'Directory does not exist message not found');
assert(
findConsoleMessage(infoSpy, /Did you forget to run next-video init/i),
'Did you forget to run next-video init message not found'
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a blocker, but might make sense to store the text as constants somewhere, so changes to the text don't have to be made in two places.

@mmcc mmcc merged commit 114be50 into main Aug 25, 2023
2 checks passed
@mmcc mmcc deleted the mmcc/cli-tests branch August 25, 2023 00:15
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