Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@knapsack-pro/jest

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knapsack-pro/jest

Knapsack Pro Jest splits Jest tests across CI nodes and makes sure that tests will run in optimal time on each CI node.

  • 7.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29K
decreased by-1.97%
Maintainers
4
Weekly downloads
 
Created
Source

@knapsack-pro/jest

Knapsack Pro

Speed up your tests

Run your 1-hour test suite in 2 minutes with optimal parallelisation on your existing CI infrastructure




Knapsack Pro wraps Jest and works with your existing CI infrastructure to parallelize tests optimally:

  • Dynamically splits your tests based on up-to-date test execution data
  • Is designed from the ground up for CI and supports all of them
  • Tracks your CI builds to detect bottlenecks
  • Does not have access to your source code and collects minimal test data
  • Enables you to export historical metrics about your CI builds
  • Replaces local dependencies like Redis with an API and runs your tests regardless of network problems

Installation

See the docs to get started:

Dependencies

Contributing

Follow the steps in the root README.md to set up the project.

You can compile TypeScript in watch mode from the root folder with:

npm start -w packages/jest

Testing

To test @knapsack-pro/jest against a real test suite we use:

Publishing

  1. cd packages/jest

  2. Sign in to the npm registry with:

    npm adduser
    
  3. Ensure you have the latest version of @knapsack-pro/core in package.json (do the change in a separate PR to have it appear in the CHANGELOG):

    {
      "dependencies": {
        "@knapsack-pro/core": "^x.x.x"
      }
    }
    

    and run npm install.

    Commit the updated package.json and package-lock.json:

    git commit -am "deps(jest): update @knapsack-pro/core"
    
  4. Before releasing a new version of the package, please update CHANGELOG.md with github_changelog_generator:

    gem install github_changelog_generator
    
    # generate CHANGELOG.md
    github_changelog_generator --user KnapsackPro --project knapsack-pro-js --pr-wo-labels --issues-wo-labels --include-labels @knapsack-pro/jest --since-tag @knapsack-pro/jest@6.2.0 --exclude-tags-regex "@knapsack-pro\/(core|cypress)@.*"
    git commit -am "docs(jest): update CHANGELOG.md"
    git push origin main
    
  5. If you have added new files to the repository, and they should be part of the released npm package, please ensure they are included in the files array in package.json.

  6. Compile the project:

    npm run build
    
  7. In order to bump the version of the package run the command below. It will also create a version commit and tag for the release:

    # Bump patch version 0.0.x
    npm version patch --no-commit-hooks --tag-version-prefix=@knapsack-pro/jest@
    
    # Bump minor version 0.x.0
    npm version minor --no-commit-hooks --tag-version-prefix=@knapsack-pro/jest@
    
    git commit -am @knapsack-pro/jest@x.x.x
    git tag @knapsack-pro/jest@x.x.x
    
  8. Push the commit and tag:

    git push origin main --tags
    
  9. When the git tag is on Github, you can update CHANGELOG.md:

    github_changelog_generator --user KnapsackPro --project knapsack-pro-js --pr-wo-labels --issues-wo-labels --include-labels @knapsack-pro/jest --since-tag @knapsack-pro/jest@6.2.0 --exclude-tags-regex "@knapsack-pro\/(core|cypress)@.*"
    git commit -am "docs(jest): update CHANGELOG.md"
    git push origin main
    
  10. Publish the package to the npm registry:

    npm publish
    
  11. Update the latest available library version in:

Keywords

FAQs

Package last updated on 20 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc