From 8a7535dc6b8e7eb2c2edbf8ac7082aed998cbab5 Mon Sep 17 00:00:00 2001 From: jfusco Date: Mon, 18 Jul 2016 12:10:17 -0400 Subject: [PATCH] Fixing Travis CI integration --- .travis.yml | 2 +- gulp/tasks/test.js | 2 +- package.json | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 23fcff1..21f8964 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ before_install: - npm install -g gulp - npm install -g eslint script: - - "gulp eslint && gulp test" + - "gulp eslint && npm test" diff --git a/gulp/tasks/test.js b/gulp/tasks/test.js index 01ed0ef..b79b6f6 100644 --- a/gulp/tasks/test.js +++ b/gulp/tasks/test.js @@ -3,7 +3,7 @@ module.exports = (gulp, $) => { gulp.task('test', () => { return gulp.src('./src/js/Tags.js', {read: false}) - .pipe($.shell('jest --coverage')); + .pipe($.shell('npm test')); }); gulp.task('test-dev', () => { diff --git a/package.json b/package.json index db4198e..26b280d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-tagging-input", - "version": "1.1.5", + "version": "1.1.6", "description": "Simple tagging component", "main": "dist-components/Tags.js", "license": "MIT", @@ -55,6 +55,9 @@ "run-sequence": "^1.2.1", "minimist": "~1.2.0" }, + "scripts": { + "test": "jest --coverage" + }, "jest": { "testDirectoryName": "__tests__", "testPathIgnorePatterns": [