{"_id":"@allincart-ag/jest-preset-sw6-admin","_rev":"5-7020b32a1302229717e1a5fe822dea55","name":"@allincart-ag/jest-preset-sw6-admin","dist-tags":{"latest":"6.0.5"},"versions":{"6.0.1":{"name":"@allincart-ag/jest-preset-sw6-admin","version":"6.0.1","keywords":["jest","unit","test","unit-test","allincart","sw6"],"license":"MIT","_id":"@allincart-ag/jest-preset-sw6-admin@6.0.1","maintainers":[{"name":"xiaosong66","email":"1596363735@qq.com"}],"homepage":"https://github.com/allincart/jest-preset-sw6-admin#readme","bugs":{"url":"https://github.com/allincart/jest-preset-sw6-admin/issues"},"dist":{"shasum":"769e867ee68890386001287624beaec6c7b93a76","tarball":"https://registry.npmjs.org/@allincart-ag/jest-preset-sw6-admin/-/jest-preset-sw6-admin-6.0.1.tgz","fileCount":10,"integrity":"sha512-A6Xd4lCnHclRmJ8Opjyd3npSp7yGBwGl0Yc49+xmcNCjju2j2VF96/+ULs7f/rUlpIb35B2tEdTscRfQ2B4rkA==","signatures":[{"sig":"MEUCIHc3F2b3rTBwuHODIIjyhXmNjCjQwOtBonW3Z2DURc5CAiEApyoTMZw35Ix5Gvh+1GW/AvbfknX6KQcZAKP7cLEEDWg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9074},"main":"jest-preset.js","engines":{"npm":">=10.0.0","node":"^20.0.0 || ^21.0.0 || ^22.0.0 || ^23.0.0"},"gitHead":"37643f67809bf28f2d39efe0bd04449ee41651ec","_npmUser":{"name":"xiaosong66","email":"1596363735@qq.com"},"repository":{"url":"git+https://github.com/allincart/jest-preset-sw6-admin.git","type":"git"},"_npmVersion":"10.8.2","description":"Jest Test preset for AllinCart 6 administration unit tests","directories":{},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^8.3.2","babel-jest":"^27.5.1","@babel/core":"^7.17.12","@babel/preset-typescript":"^7.16.7","babel-plugin-allincart-vite-meta-glob":"^0.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-preset-sw6-admin_6.0.1_1743795575558_0.40409418997717705","host":"s3://npm-registry-packages-npm-production"}},"6.0.2":{"name":"@allincart-ag/jest-preset-sw6-admin","version":"6.0.2","keywords":["jest","unit","test","unit-test","allincart","sw6"],"license":"MIT","_id":"@allincart-ag/jest-preset-sw6-admin@6.0.2","maintainers":[{"name":"xiaosong66","email":"1596363735@qq.com"}],"homepage":"https://github.com/allincart-org/jest-preset-sw6-admin#readme","bugs":{"url":"https://github.com/allincart-org/jest-preset-sw6-admin/issues"},"dist":{"shasum":"883ad332a8580865d345ebf38ba29550a16bac7a","tarball":"https://registry.npmjs.org/@allincart-ag/jest-preset-sw6-admin/-/jest-preset-sw6-admin-6.0.2.tgz","fileCount":11,"integrity":"sha512-3QzcdhhPXbdBDcHygzdh3lSjyWTbTNlLeGrOYCWOU9FeSv3DecWwgk5D+BiMo3JBjCx1kzyAjAd2kNC1ZbrWdA==","signatures":[{"sig":"MEQCICUB/gJT2gXoMa6TbzsPR2Y4uVHSaQ1bfKnZ5HCiW/3TAiAYX03a/U1mdhu1mEY+YrJvFRJBlWOYqeFJcGyOmgjKBQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12265},"main":"jest-preset.js","engines":{"npm":">=10.0.0","node":"^20.0.0 || ^21.0.0 || ^22.0.0 || ^23.0.0"},"gitHead":"f602832f076313ca5ff9099736d1becef39b4b91","_npmUser":{"name":"xiaosong66","email":"1596363735@qq.com"},"repository":{"url":"git+https://github.com/allincart-org/jest-preset-sw6-admin.git","type":"git"},"_npmVersion":"10.8.2","description":"Jest Test preset for Allincart 6 administration unit tests","directories":{},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^8.3.2","babel-jest":"^27.5.1","@babel/core":"^7.17.12","@babel/preset-typescript":"^7.16.7","babel-plugin-allincart-vite-meta-glob":"^0.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-preset-sw6-admin_6.0.2_1746189880968_0.4354892991568844","host":"s3://npm-registry-packages-npm-production"}},"6.0.3":{"name":"@allincart-ag/jest-preset-sw6-admin","version":"6.0.3","keywords":["jest","unit","test","unit-test","allincart","sw6"],"license":"MIT","_id":"@allincart-ag/jest-preset-sw6-admin@6.0.3","maintainers":[{"name":"xiaosong66","email":"1596363735@qq.com"}],"homepage":"https://github.com/allincart-org/jest-preset-sw6-admin#readme","bugs":{"url":"https://github.com/allincart-org/jest-preset-sw6-admin/issues"},"dist":{"shasum":"6022ec8f3a60badc9a2e3cc8bf6baab4e6ff8eb8","tarball":"https://registry.npmjs.org/@allincart-ag/jest-preset-sw6-admin/-/jest-preset-sw6-admin-6.0.3.tgz","fileCount":11,"integrity":"sha512-oru8oy0YvYhg6pHc9lt/3rsZwz2ssIXrdSO9OVQrFYwHqaouQXc8ACyOiBXmB7RQhI4/2bIBBhPSBjfIha5sQQ==","signatures":[{"sig":"MEUCIQCdtLWN0o7BiDnip98+mgMH1JYIABYcg22fxwWH98S6iwIgazNtIiHYfUaKoa0ZICPUTRVrrovKIaNL6cTBpC6/EnQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12265},"main":"jest-preset.js","engines":{"npm":">=10.0.0","node":"^20.0.0 || ^21.0.0 || ^22.0.0 || ^23.0.0"},"gitHead":"d1c5c4852fd59ca948b05ce8fe06d27ab26a4a7c","_npmUser":{"name":"xiaosong66","email":"1596363735@qq.com"},"repository":{"url":"git+https://github.com/allincart-org/jest-preset-sw6-admin.git","type":"git"},"_npmVersion":"10.8.2","description":"Jest Test preset for Allincart 6 administration unit tests","directories":{},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^8.3.2","babel-jest":"^27.5.1","@babel/core":"^7.17.12","@babel/preset-typescript":"^7.16.7","babel-plugin-allincart-vite-meta-glob":"^0.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-preset-sw6-admin_6.0.3_1746394229990_0.4625371253746713","host":"s3://npm-registry-packages-npm-production"}},"6.0.4":{"name":"@allincart-ag/jest-preset-sw6-admin","version":"6.0.4","keywords":["jest","unit","test","unit-test","allincart","sw6"],"license":"MIT","_id":"@allincart-ag/jest-preset-sw6-admin@6.0.4","maintainers":[{"name":"xiaosong66","email":"1596363735@qq.com"}],"homepage":"https://github.com/allincart-org/jest-preset-sw6-admin#readme","bugs":{"url":"https://github.com/allincart-org/jest-preset-sw6-admin/issues"},"dist":{"shasum":"7bcc9650e43f28af24b8c3f66e699bb3d29c61b7","tarball":"https://registry.npmjs.org/@allincart-ag/jest-preset-sw6-admin/-/jest-preset-sw6-admin-6.0.4.tgz","fileCount":11,"integrity":"sha512-nw0wCAULbktoOJ521IWqu8tRN3RcKoXh58/MGdrKBwO3uwqW1jCy0fbbe5BwQB0wZU6e4kzecdBUpkkNGgIncw==","signatures":[{"sig":"MEUCIQC//3kdIflFC8vpFrpudzuzLgPVhxYbszveLktsuSHyjwIgQ7V5bv7N2f6GjjntRNRj4CAw+vMPKBmg2kvKTgcAZ1k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12270},"main":"jest-preset.js","engines":{"npm":">=10.0.0","node":"^20.0.0 || ^21.0.0 || ^22.0.0 || ^23.0.0"},"gitHead":"d1c5c4852fd59ca948b05ce8fe06d27ab26a4a7c","_npmUser":{"name":"xiaosong66","email":"1596363735@qq.com"},"repository":{"url":"git+https://github.com/allincart-org/jest-preset-sw6-admin.git","type":"git"},"_npmVersion":"10.8.2","description":"Jest Test preset for Allincart 6 administration unit tests","directories":{},"_nodeVersion":"20.18.1","dependencies":{"uuid":"^8.3.2","babel-jest":"^27.5.1","@babel/core":"^7.17.12","@babel/preset-typescript":"^7.16.7","babel-plugin-allincart-vite-meta-glob":"^0.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-preset-sw6-admin_6.0.4_1746541265854_0.7673300111626029","host":"s3://npm-registry-packages-npm-production"}},"6.0.5":{"name":"@allincart-ag/jest-preset-sw6-admin","version":"6.0.5","description":"Jest Test preset for Allincart 6 administration unit tests","main":"jest-preset.js","keywords":["jest","unit","test","unit-test","allincart","sw6"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/allincart-org/jest-preset-sw6-admin.git"},"bugs":{"url":"https://github.com/allincart-org/jest-preset-sw6-admin/issues"},"homepage":"https://github.com/allincart-org/jest-preset-sw6-admin#readme","engines":{"node":"^20.0.0 || ^21.0.0 || ^22.0.0 || ^23.0.0","npm":">=10.0.0"},"dependencies":{"@babel/core":"^7.17.12","@babel/preset-typescript":"^7.16.7","babel-jest":"^27.5.1","babel-plugin-allincart-vite-meta-glob":"^0.0.4","uuid":"^8.3.2"},"publishConfig":{"access":"public"},"_id":"@allincart-ag/jest-preset-sw6-admin@6.0.5","gitHead":"9a57070ae56d86f78fe91a5d9c13cf8d4bbab389","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-iCwPA0Pr+ebbYVDn85+axQWImn32AmXoAEJob/UTTMcyUfqqZXtOb3tz5DsJeRntsjEf/+ibWB4rxF5fjiz/EQ==","shasum":"a95a10f3f12e4b3cec09bc1c34fea64cefa02e03","tarball":"https://registry.npmjs.org/@allincart-ag/jest-preset-sw6-admin/-/jest-preset-sw6-admin-6.0.5.tgz","fileCount":11,"unpackedSize":12270,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDo5CWHKYJiqmjSFcIuMRUNLn+zZdTKTs49RFinWKJz+AiEA1bbZDqyDUbjs5gafE15aPOdJEmtaoNcPQrzKaHGPbmw="}]},"_npmUser":{"name":"xiaosong66","email":"1596363735@qq.com"},"directories":{},"maintainers":[{"name":"xiaosong66","email":"1596363735@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jest-preset-sw6-admin_6.0.5_1747699618418_0.09239886090858751"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-04T19:39:35.490Z","modified":"2025-05-20T00:06:58.773Z","6.0.1":"2025-04-04T19:39:35.775Z","6.0.2":"2025-05-02T12:44:41.175Z","6.0.3":"2025-05-04T21:30:30.213Z","6.0.4":"2025-05-06T14:21:06.040Z","6.0.5":"2025-05-20T00:06:58.605Z"},"bugs":{"url":"https://github.com/allincart-org/jest-preset-sw6-admin/issues"},"license":"MIT","homepage":"https://github.com/allincart-org/jest-preset-sw6-admin#readme","keywords":["jest","unit","test","unit-test","allincart","sw6"],"repository":{"type":"git","url":"git+https://github.com/allincart-org/jest-preset-sw6-admin.git"},"description":"Jest Test preset for Allincart 6 administration unit tests","maintainers":[{"name":"xiaosong66","email":"1596363735@qq.com"}],"readme":"# Jest Test preset for Shopware 6 administration unit tests\n\n![GitHub](https://img.shields.io/github/license/shopware/jest-preset-sw6-admin)\n![GitHub last commit](https://img.shields.io/github/last-commit/shopware/jest-preset-sw6-admin)\n![Libraries.io](https://img.shields.io/librariesio/release/npm/%40shopware-ag/jest-preset-sw6-admin/latest)\n![Latest version](https://img.shields.io/github/package-json/v/shopware/jest-preset-sw6-admin)\n\nDefault [Jest](https://jestjs.io/) preset for Shopware 6 administration development.\n\n```bash\nnpm install jest @shopware-ag/jest-preset-sw6-admin @babel/preset-env @babel/plugin-proposal-class-properties --save-dev\n```\n\n## Setup\n\nAfter installaing the necessary required packages, please create a file called `babel.config.json` right next to your own `package.json` with the following content:\n\n```json\n{\n    \"presets\": [\"@babel/preset-env\"],\n    \"plugins\": [\"@babel/plugin-proposal-class-properties\"]\n}\n```\n\n### Via `jest.config.js`\n\nNext up, create a file `jest.config.js` which should contain the following content:\n\n```js\nmodule.exports = {\n    preset: '@shopware-ag/jest-preset-sw6-admin',\n    globals: {\n        adminPath: '<file-path-to-sw6-administration>', // required, e.g. /www/sw6/platform/src/Administration/Resources/app/administration\n    }\n}\n```\n\n## Options the preset sets up for you\n\n* `collectCoverage` - Code coverage will be generated using the reporters listed under `coverageReporters`\n* `coverageReporters` - The presets uses `lcov`, `text` & `clover` as coverage reporters\n* `watchPathIgnorePatterns` - Ignores the `node_modules` folder for the watch mode of Jest\n* `clearMocks` - Automatically clear mock calls and instances before every test. \n* `moduleFileExtensions` - File with the extension `js` will automatically used as extensions your module use.\n* `moduleNameMapper` - All `css`, `less` & `scss` files will be mocked and relative paths to `src` are getting mapped to the correct src directory\n* `transform` - Transforms `js` files using [babel-jest](https://www.npmjs.com/package/babel-jest) and `twig` files are transformed using a custom twig transformer which we use in the administration as well\n* `modulePathIgnorePatterns` - Ignores e2e test specs by default\n* `setupFilesAfterEnv` - Provides a polyfill for Webpack' `require.context` and sets up the global Shopware third-party interface for every test. The object can be accessed using `global.Shopware` in test files.\n* `testMatch` - Matches all files containing `.spec.js` in the test directory","readmeFilename":"README.md"}