-
Notifications
You must be signed in to change notification settings - Fork 18
pass through jest command line config #41
Comments
Yeah you can now run grommet check and all options will be kept
`grommet check -t -- --updateSnapshot‘
`grommet check -t -- --watch‘
Hope it helps
Kr
Alan
… On Jul 30, 2017, at 6:04 AM, rasenplanscher ***@***.***> wrote:
Just now, running yarn test gave me this:
› 1 obsolete snapshot found, run with `yarn test -- -u` to remove them.
Then, yarn test -- -u gave me this:
grommet check -u
Invalid option: 'u'. Showing Help:
Usage: check [options]
Runs Javascript/SASS linters and execute tests for your project
Options:
--help output usage information
-j, --jslint Whether to run only js lint.
-s, --scsslint Whether to run only scss lint.
-t, --test Whether to run only tests.
It would be great if jest's advice held true :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thanks for the quick reply!
Unfortunately, Also, your mention of the |
Then again, we couldn't use Jest's watch mode while simultaneously running something else... Therefore, the watch mode would need to trigger jest as well per change... |
we used to have In the past jest used to support both That said, I like your idea of having a few first-order parameters like watch and update. They can actually be reused in both eslint and jest.
I will try to add support for that soon. Thanks for bringing this up. |
@alansouzati did this get added to Jest? |
Just now, running
yarn test
gave me this:Then,
yarn test -- -u
gave me this:It would be great if jest's advice held true :)
The text was updated successfully, but these errors were encountered: