-
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
test: resolve gtsRootDir in tests #158
Conversation
This ensures that the tests are independent of where they are run from. Remove unnecessary lint test. Improve lint tests to avoid passing in lint config.
Codecov Report
@@ Coverage Diff @@
## master #158 +/- ##
==========================================
- Coverage 96.67% 96.62% -0.06%
==========================================
Files 10 10
Lines 331 326 -5
Branches 22 22
==========================================
- Hits 320 315 -5
Misses 11 11
Continue to review full report at Codecov.
|
test.serial('createProgram should return an object', async t => { | ||
await withFixtures({'tsconfig.json': '{}'}, async () => { | ||
const program = lint.createProgram(OPTIONS); | ||
t.truthy(program); | ||
}); | ||
}); | ||
|
||
// TODO: make the error friendlier. This error implies that our module messed |
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.
Why is this test deletec?
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.
The tests in this fine weren't fully thought through, and this one in particular wasn't needed. Instead of fixing the bug in lint.ts
, the tests were always ensuring that there was a tslint.json
in the specific test directory. This test was testing that the bug correctly existed 🤣.
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.
Sorry, this should had said.. fix the bug in the OPTIONS
object construction.
This ensures that the tests are independent of where they are run from.
Remove a test that was unnecessary.