diff --git a/.travis.yml b/.travis.yml index 6abf5aa..b931ddc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,6 @@ jobs: - node_js: 10 name: Test on Node.js 10 script: npm run test:mocha + - node_js: 12 + name: Check code style + script: npm run test:lint diff --git a/package.json b/package.json index 7a80c6d..e90f083 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,9 @@ "scripts": { "prepare": "npm run build", "build": "ROLLUP=1 rollup -c", - "lint": "eslint --cache .", - "test": "npm run lint && TESTS=1 mocha --require @babel/register", + "test:lint": "eslint --cache .", + "test:mocha": "TESTS=1 mocha --require @babel/register", + "test": "npm run lint && npm run test:mocha", "docs": "prop-types-table src/index.js | md-insert README.md --header Props -i", "example": "npm install && cd example && npm install" },