-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: add tsc to test command #33
Conversation
package.json
Outdated
@@ -28,7 +28,7 @@ | |||
"server": "NODE_ENV=development node script/entry server/cli", | |||
"codecov": "codecov", | |||
"postinstall": "node ./script/postinstall", | |||
"test": "npm run-script test:unit && npm run-script lint && npm run-script test:build", | |||
"test": "npm run-script test:unit && npm run-script lint && npm run-script test:build && ./node_modules/.bin/tsc", |
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.
I think this will work but have not verified
"test": "npm run-script test:unit && npm run-script lint && npm run-script test:build && ./node_modules/.bin/tsc", | |
"test": "npm run-script test:unit && npm run-script lint && npm run-script test:build && tsc", |
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.
hey look at that
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.
Other than the 1 suggestion I think it's fine to merge
until now we've been catching type errors as a function of the build commands run as part of the tests, but some type error have leaked through in the tests themselves and in the scripts which aren't compiled with the app code.
adding tsc to the test command before was annoying because of this bug microsoft/TypeScript#28202
so i've upgraded typescript to the new release with that bug fixed but now there is a different bug
microsoft/TypeScript#28748
but that one is easier to ignore and document so i've pressed on anyway.