-
Notifications
You must be signed in to change notification settings - Fork 208
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
Add more tests #182
Add more tests #182
Conversation
Codecov Report
@@ Coverage Diff @@
## master #182 +/- ##
==========================================
- Coverage 99.13% 98.15% -0.98%
==========================================
Files 10 12 +2
Lines 460 652 +192
Branches 31 55 +24
==========================================
+ Hits 456 640 +184
- Misses 4 12 +8
Continue to review full report at Codecov.
|
files: string[]; | ||
license: string; | ||
keywords: string[]; | ||
name?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be that I'm missing context - why are these all optional now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They should always have been optional. The schema for package.json
isn't very strong and there is no requirement that all of these keys must be present.
@@ -37,7 +37,7 @@ const OPTIONS: Options = { | |||
logger: {log: console.log, error: console.error, dir: nop} | |||
}; | |||
|
|||
test.serial('format should return false for well-formatted files', t => { | |||
test.serial('format should return true for well-formatted files', t => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well that's confusing :) Was the title of the test just wrong before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
In an effort to improve coverage, I started working some tests. It turns out that our current coverage numbers are a lie as
init.ts
wasn't accounted for. It only gets tested viatest-kitchen.ts
which is hard to report for coverage purposes (it uses an tarball-installed version of the package rather than the existing files).Here some more tests. Still more to come, but no reason to sit on these. These can land.