Skip to content

Commit

Permalink
chore: add test env for new package too
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 29, 2019
1 parent a7b057c commit f7b1d2a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/tasks/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,12 @@ module.exports = () => {
prepare: 'npm run build',
release: 'standard-version',
security: 'npm audit',
'test:only': 'jest',
'test:watch': 'jest --watch',
'test:coverage': "jest --collectCoverageFrom='src/**/*.js' --coverage",
'test:only': 'cross-env NODE_ENV=test jest',
'test:watch': 'cross-env NODE_ENV=test jest --watch',
'test:coverage':
"cross-env NODE_ENV=test jest --collectCoverageFrom='src/**/*.js' --coverage",
pretest: 'npm run lint',
test: 'npm run test:coverage',
test: 'cross-env NODE_ENV=test npm run test:coverage',
defaults: existing.scripts.defaults || 'webpack-defaults',
},
files: existing.files || ['dist/', 'lib/', 'index.js'],
Expand Down

0 comments on commit f7b1d2a

Please sign in to comment.