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

Improve tests #255

Merged
merged 17 commits into from
Feb 28, 2024
Merged

Conversation

tommy-mitchell
Copy link
Contributor

Separating some test modernization out from #252. Need to do a once over to check everything but I'm pretty confident with this.

Tried renaming files to keep blame history, but not all of them made it through. Oh well.

@tommy-mitchell tommy-mitchell marked this pull request as ready for review February 28, 2024 08:12
Comment on lines +23 to +42
test.todo('version');

test('overriding pkg still normalizes', t => {
const cli = meow({
importMeta,
pkg: {
name: 'browser-sync',
bin: './bin/browser-sync.js',
},
});

t.like(cli, {
pkg: {
name: 'browser-sync',
version: '',
},
});

// TODO: test that showVersion logs undefined
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think these test cases can be added later.

@sindresorhus sindresorhus merged commit 7b9e739 into sindresorhus:main Feb 28, 2024
3 checks passed
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