Knapsack Pro

Check out the new docs for the updated documentation.

FAQ / @knapsack-pro/jest / Knapsack Pro Jest specific questions

How to pass command line options to Jest?

You can pass command line options to Jest by just passing them to @knapsack-pro/jest. See example:

$(npm bin)/knapsack-pro-jest --debug

You can find list of Jest CLI options here.

IMPORTANT: You should use the full name of the argument listed in JestCLI documentation. For example, aliases like -u won't work. Instead, use --updateSnapshot.

If you want to pass arguments related to Node you should use NODE_OPTIONS environment variable. See example for max_old_space_size.

Start using Knapsack Pro

Sign up and speed up your tests.