@shopware-ag/jest-preset-sw6-admin
Advanced tools
Comparing version 1.1.1 to 1.1.2-beta.0
@@ -26,3 +26,3 @@ const path = require('path'); | ||
'\\.(css|less|scss)$': resolve(join(__dirname, '@tool/__mocks__/styleMock.js')), | ||
'^src(.*)$': '<rootDir>/src$1' | ||
'^src(.*)$': `${process.env.ADMIN_PATH}/src$1` | ||
}, | ||
@@ -29,0 +29,0 @@ |
{ | ||
"name": "@shopware-ag/jest-preset-sw6-admin", | ||
"version": "1.1.1", | ||
"version": "1.1.2-beta.0", | ||
"description": "Jest Test preset for Shopware 6 administration unit tests", | ||
@@ -5,0 +5,0 @@ "main": "jest-preset.js", |
@@ -11,3 +11,3 @@ # Jest Test preset for Shopware 6 administration unit tests | ||
```bash | ||
npm install @shopware-ag/jest-preset-sw6-admin --save-dev | ||
npm install jest @shopware-ag/jest-preset-sw6-admin @babel/preset-env @babel/plugin-proposal-class-properties --save-dev | ||
``` | ||
@@ -17,13 +17,15 @@ | ||
### Via `jest.config.json` or `jest` field in `package.json` | ||
After installaing the necessary required packages, please create a file called `babel.config.json` right next to your own `package.json` with the following content: | ||
```json | ||
{ | ||
"preset": "@shopware-ag/jest-preset-sw6-admin" | ||
"presets": ["@babel/preset-env"], | ||
"plugins": ["@babel/plugin-proposal-class-properties"] | ||
} | ||
``` | ||
## Usage | ||
It's important to configure the preset using the following configuration: | ||
### Via `jest.config.js` | ||
Next up, create a file `jest.config.js` which should contain the following content: | ||
```js | ||
@@ -30,0 +32,0 @@ module.exports = { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
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
7162
49
1
8