1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/infrastructure/jest
dependabot[bot] 67dc74530b
Bump @swc/core from 1.3.40 to 1.3.44 (#7439)
Bumps [@swc/core](https://github.com/swc-project/swc) from 1.3.40 to 1.3.44.
- [Release notes](https://github.com/swc-project/swc/releases)
- [Changelog](https://github.com/swc-project/swc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/swc-project/swc/compare/v1.3.40...v1.3.44)

---
updated-dependencies:
- dependency-name: "@swc/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 14:14:04 +03:00
..
bin Add package for sharing jest configuration for upcoming Features (#7198) 2023-02-22 11:19:16 +02:00
index.js Add package for sharing jest configuration for upcoming Features (#7198) 2023-02-22 11:19:16 +02:00
jest-28-resolver.js Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
monorepo-package-config.js Switch to using messaging and startable stoppable from NPM package (#7368) 2023-03-21 11:38:43 +02:00
monorepo-root-config.js Add package for sharing jest configuration for upcoming Features (#7198) 2023-02-22 11:19:16 +02:00
package.json Bump @swc/core from 1.3.40 to 1.3.44 (#7439) 2023-03-31 14:14:04 +03:00
README.md Add package for sharing jest configuration for upcoming Features (#7198) 2023-02-22 11:19:16 +02:00
setup-react-tests.ts Add package for sharing jest configuration for upcoming Features (#7198) 2023-02-22 11:19:16 +02:00

@k8slens/jest

This package contains jest configurations and scripts for Lens packages.

Install

$ npm install @k8slens/jest

Features

Package configurations

Shared configurations for minimal duplication.

Node

./packages//jest.config.js

module.exports = require("@k8slens/jest").monorepoPackageConfig(__dirname).configForNode;

React

./packages//jest.config.js

module.exports = require("@k8slens/jest").monorepoPackageConfig(__dirname).configForReact;

Root configuration

You may want to enable testing of packages using single command from root level. This allows you to utilize jest --watch between all packages.

./jest.config.js

module.exports = require("@k8slens/jest").monorepoRootConfig(__dirname);

Scripts

lens-test

Test package with coverage enforcement. Automatically opens coverage report in case of failure.

./packages//package.json

{
 "scripts": {
   "test": "lens-test"
 }         
}