cypress-react-unit-test
Advanced tools
Comparing version 2.8.0-use-bundler-from-cra.2 to 2.8.0
{ | ||
"name": "cypress-react-unit-test", | ||
"version": "2.8.0-use-bundler-from-cra.2", | ||
"version": "2.8.0", | ||
"description": "Unit test React components using Cypress", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -135,2 +135,22 @@ # cypress-react-unit-test [![CircleCI](https://circleci.com/gh/bahmutov/cypress-react-unit-test/tree/master.svg?style=svg)](https://circleci.com/gh/bahmutov/cypress-react-unit-test/tree/master) [![Cypress.io tests](https://img.shields.io/badge/cypress.io-tests-green.svg?style=flat-square)](https://dashboard.cypress.io/#/projects/z9dxah) [![renovate-app badge][renovate-badge]][renovate-app] [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/bahmutov/cypress-react-unit-test) | ||
### Create React App users | ||
If you are using Create-React-App v3, and want to reuse the built in webpack before ejecting, this module ships with Cypress preprocessor in [plugins](plugins) folder. From the `cypress.json` point at the shipped plugin in the `node_modules`. | ||
```json | ||
{ | ||
"pluginsFile": "node_modules/cypress-react-unit-test/plugins/cra-v3" | ||
} | ||
``` | ||
If you already have a plugins file, you can use a file preprocessor that points at CRA's webpack | ||
```js | ||
// your project's Cypress plugin file | ||
const craFilePreprocessor = require('cypress-react-unit-test/plugins/cra-v3/file-preprocessor') | ||
module.exports = on => { | ||
on('file:preprocessor', craFilePreprocessor()) | ||
} | ||
``` | ||
## Examples | ||
@@ -137,0 +157,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
32759
1
203
1