Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.72 KB

README.knapsack-pro.md

File metadata and controls

64 lines (43 loc) · 1.72 KB

React example test suite and KnapsackPro.com

CircleCI

Dependencies

Development

  1. Setup @knapsack-pro/core project.

  2. Setup @knapsack-pro/jest project.

  3. Install dependencies.

    # use Yarn for react project to install dependencies
    $ yarn install
    
  4. 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
    

Testing

When @knapsack-pro/jest was not yet published to npm registry

Ensure you have in package.json local version of knapsack-pro/jest and run yarn install:

{
  "devDependencies": {
    "@knapsack-pro/jest": "file:../knapsack-pro-jest",
  }
}

When @knapsack-pro/jest was already published in npm registry

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"
  }
}

Run tests with @knapsack-pro/jest

This is useful if you want to run tests in development to test @knapsack-pro/jest.

$ bin/knapsack_pro_jest