mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
Configure tests for strapi-admin package
This commit is contained in:
parent
82834d61c5
commit
4854e53f51
@ -22,6 +22,7 @@
|
||||
],
|
||||
"ignore": [
|
||||
"packages/strapi-generate-new/files/public/**",
|
||||
"packages/strapi-admin/**",
|
||||
"website/**"
|
||||
],
|
||||
"rules": {
|
||||
|
||||
@ -12,10 +12,11 @@
|
||||
"author": "Strapi",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"lint:admin": "cd public && npm run test"
|
||||
"postinstall": "cd public && npm install",
|
||||
"test": "cd public && npm run test"
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint:admin"
|
||||
"test"
|
||||
],
|
||||
"dependencies": {
|
||||
"cheerio": "0.22.0"
|
||||
|
||||
@ -6,3 +6,5 @@ if [ -z "$TEST_GREP" ]; then
|
||||
fi
|
||||
|
||||
node --harmony-async-await node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"
|
||||
cd packages/strapi-admin
|
||||
npm run test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user