-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Keep ARGV only in CLI files #4012
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,15 +32,6 @@ Object { | |
"christoph": "pojer", | ||
"dmitrii": "abramov", | ||
"hello": "world", | ||
"pattern": Object { | ||
"input": "add_fail.test.js", | ||
"paths": Array [ | ||
"add_fail.test.js", | ||
], | ||
"shouldTreatInputAsPattern": false, | ||
"testPathPattern": "add_fail.test.js", | ||
}, | ||
"testPathPattern": "\\"add_fail.test.js\\"", | ||
}, | ||
} | ||
`; | ||
|
@@ -69,15 +60,6 @@ Object { | |
"christoph": "pojer", | ||
"dmitrii": "abramov", | ||
"hello": "world", | ||
"pattern": Object { | ||
"input": "add.test.js", | ||
"paths": Array [ | ||
"add.test.js", | ||
], | ||
"shouldTreatInputAsPattern": false, | ||
"testPathPattern": "add.test.js", | ||
}, | ||
"testPathPattern": "\\"add.test.js\\"", | ||
}, | ||
} | ||
`; | ||
|
@@ -95,7 +77,7 @@ exports[`Custom Reporters Integration default reporters enabled 2`] = ` | |
Tests: 1 passed, 1 total | ||
Snapshots: 0 total | ||
Time: <<REPLACED>> | ||
Ran all test suites matching \\"add.test.js\\". | ||
Ran all test suites matching /add.test.js/i. | ||
" | ||
`; | ||
|
||
|
@@ -119,17 +101,7 @@ Object { | |
"called": true, | ||
"path": false, | ||
}, | ||
"options": Object { | ||
"pattern": Object { | ||
"input": "add.test.js", | ||
"paths": Array [ | ||
"add.test.js", | ||
], | ||
"shouldTreatInputAsPattern": false, | ||
"testPathPattern": "add.test.js", | ||
}, | ||
"testPathPattern": "\\"add.test.js\\"", | ||
}, | ||
"options": Object {}, | ||
} | ||
`; | ||
|
||
|
@@ -151,3 +123,29 @@ exports[`Custom Reporters Integration invalid format for adding reporters 1`] = | |
|
||
" | ||
`; | ||
|
||
exports[`Custom Reporters Integration valid array format for adding reporters 1`] = ` | ||
"{ | ||
\\"onRunComplete\\": { | ||
\\"called\\": true, | ||
\\"numPassedTests\\": 1, | ||
\\"numFailedTests\\": 0, | ||
\\"numTotalTests\\": 1 | ||
}, | ||
\\"onRunStart\\": { | ||
\\"called\\": true, | ||
\\"options\\": \\"object\\" | ||
}, | ||
\\"onTestResult\\": { | ||
\\"times\\": 1, | ||
\\"called\\": true | ||
}, | ||
\\"onTestStart\\": { | ||
\\"called\\": true, | ||
\\"path\\": false | ||
}, | ||
\\"options\\": { | ||
\\"Dmitrii Abramov\\": \\"Awesome\\" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lol There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably needs to be updated too :D There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spare that for another PR :p |
||
} | ||
}" | ||
`; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ exports[`Watch mode flows Runs Jest once by default and shows usage 1`] = ` | |
Array [ | ||
" | ||
Watch Usage | ||
› Press o to only run tests related to changed files. | ||
› Press a to run all tests. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is not the actual behavior change, rather the test change because of different default mock value |
||
› Press p to filter by a filename regex pattern. | ||
› Press t to filter by a test name regex pattern. | ||
› Press q to quit watch mode. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,5 +228,3 @@ exports[`Watch mode flows Results in pattern mode get truncated appropriately 2` | |
[MOCK - cursorTo(12, 5)] | ||
[MOCK - cursorRestorePosition]" | ||
`; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i used a direct comparison here instead of snapshot |
||
exports[`Watch mode flows can select a specific test name from the typeahead results 1`] = `"should convert string to a RegExp"`; |
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.
as discussed in #4006 this now prints the pattern instead of mix of pattern+raw input