I'm trying to output the result of a yarn test command line to a file.
Tried 'yarn test > file.txt' but the file I got did not have the descriptions of the tests and it seems to be deformatted
File.txt
yarn run v1.3.2
$ node scripts/test.js --env=jsdom
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
RUNS ...DynamicHeader.test.js
[K
[1A
[K
[1A
Watch Usage
› Press a to run all tests.
› 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.
› Press Enter to trigger a test run.
console.error node_modules\fbjs\lib\warning.js:33
Warning: Failed prop type: The prop `to` is marked as required in `Link`, but its value is `undefined`.
in Link (at DynamicHeader.js:10)
The correct output from my test suit should be like this
Is there some way to get the output from the command line exactly to a file?
Aucun commentaire:
Enregistrer un commentaire