-
Setup @knapsack-pro/core project.
-
Setup @knapsack-pro/jest project.
-
Install dependencies.
# use Yarn for react project to install dependencies $ yarn install
-
Use your local version of
@knapsack-pro/jest
and@knapsack-pro/core
registered with node.$ npm link @knapsack-pro/jest $ npm link @knapsack-pro/core
Ensure you have in package.json
local version of knapsack-pro/jest
and run yarn install
:
{
"devDependencies": {
"@knapsack-pro/jest": "file:../knapsack-pro-jest",
}
}
Note if you do this step for the very first time you need to remove yarn.lock
in order to generate a fresh one instead of using what was generated in yarn.lock
when you were using the local version of @knapsack-pro/jest
.
Ensure you have in package.json
the latest version of @knapsack-pro/jest
and run yarn install
:
{
"devDependencies": {
"@knapsack-pro/jest": "x.x.x"
}
}
This is useful if you want to run tests in development to test @knapsack-pro/jest
.
$ bin/knapsack_pro_jest