mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
5ed297fa74fb75d4b25d8b3e9dfa0608c23872aa
--- Changes: - Added `testfilter.txt` ``` // @only call capture-param-mutate jsx-spread ``` or ``` // @skip call error.todo-kitchensink ``` - grouped all commands under `--mode` ```js // runs all tests yarn snap // runs all tests and updates fixtures yarn snap --mode update // runs only tests that pass `testfilter.txt` yarn snap --mode filter // run in watch mode yarn snap --mode watch ``` - in watch mode, toggle between running all tests or filtered tests ``` 386 Tests, 386 Passed, 0 Failed Completed in 4994 ms Current mode = NORMAL, run all test fixtures. Waiting for input or file changes... u - update all fixtures f - toggle (turn on) filter mode q - quit [any] - rerun tests > f PASS call PASS capture_mutate-across-fns PASS timers 3 Tests, 3 Passed, 0 Failed Completed in 39 ms Current mode = FILTER, filter test fixtures by "testfilter.txt" Waiting for input or file changes... u - update all fixtures f - toggle (turn off) filter mode q - quit [any] - rerun tests ``` --- - `runner.ts` is pretty large now, happy to split it up into multiple files - I'd also like to refactor `watch` to make its shared state and control flow explicit
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%