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

@shopware-ag/jest-preset-sw6-admin

Package Overview
Dependencies
Maintainers
5
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopware-ag/jest-preset-sw6-admin - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2-beta.0

2

jest-preset.js

@@ -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 = {

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