-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Migrate e2e tests to TypeScript #7990
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
049de0b
Rename test files from js to ts
aa2e4d5
Lint test files
5346d00
Update snapshots
0aac8b4
Add in snapshot for emptyDescribeWithHooks
51d1673
Migrate Utils.js
c96d455
Migrate runJest
a034827
Better type runJest
85b6196
Add some comments about watch plugin
9f566c5
Make code simpler
6d3ff78
Add a comment regarding why mockwatchplugin isnt migrated over to typ…
151f7f2
Update jest-config to ignore iterator-to-null-test for now
1384aef
tweaks
SimenB 38a8529
Merge branch 'master' into migrate/e2e-tests
SimenB ec02d6a
remove flow annotation
SimenB 644f5d4
move conditional test to a package
SimenB 4bc74f7
moar
SimenB 49623c3
fine
SimenB fa0893d
hah
SimenB 3d8dc7a
dep
SimenB c6dce70
multiple return types from runJest
SimenB 2ffbbeb
remove type casts
SimenB File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Migrate Utils.js
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why the ignore? The code looks really convoluted (I guess it's from a time before rest params), could we do
?
Same above, just do
path.join(directory, ...filePath)Uh oh!
There was an error while loading. Please reload this page.
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.
Oh the issue here was that filename is can possibly undefined from the
popcall. It doesnt fit the type expected bypath.resolveThere 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've pushed up some changes to make the code simpler regarding your comments. I'll just continue tomorrow. It's midnight where I'm at. Happy coding :)