-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Feature/upgrade testpack to ts4 #1189
Conversation
I was debugging this, this morning and discovered that the 64689d2#diff-9f602bf82ae3c45651a29c3751234e1bR287 ts-loader/test/comparison-tests/create-and-execute-test.js Lines 286 to 289 in 64689d2
I subsequently regenerated the output for the tests that failed - let's see what happens. Even if the tests now pass it still leaves the mystery (to me at least) of what these tests do! |
Hummm, none of these tests look familiar to me, and I have no idea how/why they would have expected output but no test content. I think @sheetalkamat must have created these—I’m stumped. |
The test case was same as non composite or non watch api test case name so it just copied contents from that test case before starting the test. |
Ahhhhhhhhh! - where can I spot the code that does the copying? I have had a scan through https://github.com/TypeStrong/ts-loader/blob/master/test/comparison-tests/create-and-execute-test.js but not spotted anything that looks like it would do that.. |
Oh wait - I bet it's this
|
Hey @andrewbranch
I wonder if I could beg a little help? I've been upgrading
ts-loader
s comparison test pack to TypeScript 4.0. (Not my favourite job but there you go)Anyway, a mystery has presented itself. The following comparison tests started erroring post upgrade, with no output coming from the
transpileOnly
tests.Upon closer inspection, these tests have a common trait; they appear to contain no source code (by which I mean TypeScript / JavaScript and related code in the root of each tests directory):
I'm somewhat baffled as to what these tests actually test if there's no source code in the folder of each test. They're doing something as output is produced; I'm just a little stumped as to what! Forgive me for not knowing this myself, I have a feeling I did once but it escapes me now!
If you could set me straight I'd appreciate it - I'm pondering whether the testpack should feature these tests at all. They're all Project References tests as it happens.
I'm kind of puzzled as to whether these tests actually do anything! All help appreciated ❤️
cc @sheetalkamat - I think you may both have worked on these tests at some point, so I defer to your expertise!