Configure tests for strapi-admin package

This commit is contained in:
Pierre Burgy 2016-11-25 15:37:50 +01:00
parent 82834d61c5
commit 4854e53f51
3 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@
],
"ignore": [
"packages/strapi-generate-new/files/public/**",
"packages/strapi-admin/**",
"website/**"
],
"rules": {

View File

@ -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"

View File

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