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

chore: add tsc to test command #33

Merged
merged 4 commits into from
Dec 5, 2018
Merged

chore: add tsc to test command #33

merged 4 commits into from
Dec 5, 2018

Conversation

TomWoodward
Copy link
Member

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.

@TomWoodward TomWoodward changed the title add tsc to test command chore: add tsc to test command Dec 4, 2018
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",
Copy link
Member

@philschatz philschatz Dec 5, 2018

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

Suggested change
"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",

Copy link
Member Author

Choose a reason for hiding this comment

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

hey look at that

philschatz
philschatz previously approved these changes Dec 5, 2018
Copy link
Member

@philschatz philschatz left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants