diff --git a/.travis.yml b/.travis.yml index cd5246f0..ce926508 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ install: - yarn script: - - npm test + - npm run test:verbose - gulp build - cd .. - go vet $(go list ./... | grep -v '/vendor/') diff --git a/client/package.json b/client/package.json index 6caf1214..ed829607 100644 --- a/client/package.json +++ b/client/package.json @@ -58,6 +58,7 @@ }, "scripts": { "test": "jest", - "test:watch": "npm test -- --watch" + "test:verbose": "jest --verbose", + "test:watch": "jest --watch" } } diff --git a/client/src/js/state/__tests__/reducer-channels.test.js b/client/src/js/state/__tests__/reducer-channels.test.js index 577a8875..c1258691 100644 --- a/client/src/js/state/__tests__/reducer-channels.test.js +++ b/client/src/js/state/__tests__/reducer-channels.test.js @@ -3,7 +3,7 @@ import reducer from '../channels'; import { connect } from '../servers'; import * as actions from '../actions'; -describe('reducers/channels', () => { +describe('channel reducer', () => { it('removes channels on PART', () => { let state = Immutable.fromJS({ srv1: { diff --git a/client/src/js/state/__tests__/reducer-messages.test.js b/client/src/js/state/__tests__/reducer-messages.test.js index 8275773e..6192a5ec 100644 --- a/client/src/js/state/__tests__/reducer-messages.test.js +++ b/client/src/js/state/__tests__/reducer-messages.test.js @@ -3,7 +3,7 @@ import reducer, { broadcast } from '../messages'; import * as actions from '../actions'; import appReducer from '../app'; -describe('reducers/messages', () => { +describe('message reducer', () => { it('adds the message on ADD_MESSAGE', () => { const state = reducer(undefined, { type: actions.ADD_MESSAGE, diff --git a/client/src/js/state/__tests__/reducer-servers.test.js b/client/src/js/state/__tests__/reducer-servers.test.js index 5f8d0616..0ad4b6ac 100644 --- a/client/src/js/state/__tests__/reducer-servers.test.js +++ b/client/src/js/state/__tests__/reducer-servers.test.js @@ -2,7 +2,7 @@ import Immutable from 'immutable'; import reducer, { connect, setServerName } from '../servers'; import * as actions from '../actions'; -describe('reducers/servers', () => { +describe('server reducer', () => { it('adds the server on CONNECT', () => { let state = reducer(undefined, connect('127.0.0.1:1337', 'nick', {})); diff --git a/client/src/js/state/__tests__/reducer-tab.test.js b/client/src/js/state/__tests__/reducer-tab.test.js index a2b55fc2..8894c00c 100644 --- a/client/src/js/state/__tests__/reducer-tab.test.js +++ b/client/src/js/state/__tests__/reducer-tab.test.js @@ -2,7 +2,7 @@ import reducer, { setSelectedTab } from '../tab'; import * as actions from '../actions'; import { locationChanged } from '../../util/router'; -describe('reducers/tab', () => { +describe('tab reducer', () => { it('selects the tab and adds it to history', () => { let state = reducer(undefined, setSelectedTab('srv', '#chan'));