-
Notifications
You must be signed in to change notification settings - Fork 0
test: add e2e tests #19
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
Conversation
SimenB
left a comment
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.
yay! I see there's no CI set up here - I can do that on master (and rename it to main)
Yes, please setup CI and then I will push changes. That would be the best. |
|
@mrazauskas just pushed it 🙂 I just added eslint, so you'll need a new job for Jest, but still |
|
Perfect! Will fix everything bit later. |
|
Done. I removed previous That’s some work around related with By the way, |
ah, nice! less random files is a good thing 🙂 |
|
adding |
|
@mrazauskas this is close! Tests fail on windows for some reason (we can skip it if it's an upstream issue rather than an issue with our code) |
|
These might be the roots of problems on Windows Lines 24 to 25 in f0e14fb
Line 31 in f0e14fb
I will try to fix. Thanks for setting up everything. Very useful. |
|
Good find! Should use |
|
Looked through and removed everything what seemed suspicious. Let’s see if this helps. |
Missed it, very exciting! Not needing the fork would be super awesome 👍 |
|
Found it. |
|
Closer! Seems we need to normalize the icons in the snapshot (https://github.com/facebook/jest/blob/7dd17d541bcdb4d17d96b53586949fb195294040/e2e/Utils.ts#L278-L287) and normalize the path printed by diagnostics. Jest already normalizes |
|
so close 😀 |
|
Try to pass Line 52 in f0e14fb
slash
|
|
A.. Got it already. Just a minute (; |
SimenB
left a comment
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.
🎉
|
Yes! Thanks. It was fun. |
Resolves #18
@SimenB Here they are – e2e tests. The ideas / situations taken from
readme.md. Do we need something more?Interestingly TypeScript test does not need
empty.d.ts. Did I misunderstood something?The
runJestis adapted fromjest-runner-eslint.