-
Notifications
You must be signed in to change notification settings - Fork 53
feat(tests): make ts-jest compile tests #445
Conversation
@layershifter here is the RFC I had for the |
I'm fully agree about crazy tooling, we should massively simplify them in the future.
|
Oh yes, fully agree I did something very weird there, I was just trying to make a point that there's something strange about tests compilation by hacking stuff. Probably I should have created an issue and not an invalid PR.
|
5bb7c31
to
2a51b7e
Compare
Codecov Report
@@ Coverage Diff @@
## master #445 +/- ##
==========================================
- Coverage 88.47% 88.38% -0.09%
==========================================
Files 41 41
Lines 1432 1421 -11
Branches 181 206 +25
==========================================
- Hits 1267 1256 -11
Misses 161 161
Partials 4 4
Continue to review full report at Codecov.
|
ts-jest
compile tests
2a51b7e
to
9c08bfc
Compare
ts-jest
compile tests1477df6
to
8bdfa07
Compare
8bdfa07
to
9f730c6
Compare
@layershifter addressed all comments, but we need an approved reviewer; let's bring this up with @levithomason |
9f730c6
to
a80dd9e
Compare
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 don't happy with all changes in this PR, but I understand the reasons. In the future we should address tests simplification.
Green light from me 💚
a80dd9e
to
735541f
Compare
735541f
to
bd5af9d
Compare
feat(tests): make
ts-jest
compile testsProblem:
We are not including
test/
folder in our typescript compiler options so nothing under tests is compiled by TypeScript.@layershifter did some research and found out the following:
We're using a Gulp's task to run
jest
and our watchers for JSON info files, #task. In the Jest's config we will see, that we're usingts-jest
. So the main question whyts-jest
compiles and runs the code silently? 👎Solution:
The version bump was enough to get it working correctly:
Proposal:
I talked to @smykhailov about this as well and he suggested that we should not rely on all these custom build scripts and tools (such as
gulp
/grunt
) for our build. Reasons:webpack
accomplishes out of the script functionality and we only need to configure it).We should leverage more the
webpack
functionality for setting up our build. This might be a good time to do this since we are just kicking off an effort for creating a Stardust monorepo #433Do we have any issue related to our build system approach and tooling? I can create an issue and copy these findings there.
What is your take on this, guys?
@levithomason
@kuzhelov
@miroslavstastny
@layershifter
@mnajdova
@alinais
@smykhailov