add coverage script to helper-plugin

This commit is contained in:
Simone Taeggi 2022-07-25 15:50:49 +02:00
parent 26f15edf22
commit 81c5cd0a6a
2 changed files with 3 additions and 1 deletions

View File

@ -12,4 +12,5 @@ yarn-error.log
.DS_Store .DS_Store
npm-debug.log npm-debug.log
.idea .idea
stats.html stats.html
coverage

View File

@ -35,6 +35,7 @@
"prepublishOnly": "npm run build", "prepublishOnly": "npm run build",
"storybook": "start-storybook -p 6006", "storybook": "start-storybook -p 6006",
"test:front": "jest --config ./jest.config.front.js", "test:front": "jest --config ./jest.config.front.js",
"test:front:cov": "jest --config ./jest.config.front.js --coverage --collectCoverageFrom='<rootDir>/packages/core/helper-plugin/lib/src/**/*.js' --coverageDirectory='<rootDir>/packages/core/helper-plugin/coverage'",
"test:front:watch": "jest --config ./jest.config.front.js --watchAll", "test:front:watch": "jest --config ./jest.config.front.js --watchAll",
"watch": "yarn create:index && cross-env NODE_ENV=development webpack-cli -w" "watch": "yarn create:index && cross-env NODE_ENV=development webpack-cli -w"
}, },