From ae9cca9159b95f931d0da2dda47e39b2449fa0c6 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 2 Feb 2018 01:52:57 +0330 Subject: [PATCH] fix tests and coverage --- .circleci/config.yml | 4 ++-- package.json | 7 +------ test/module.test.js | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 70f6f8110..6b0328037 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: working_directory: /usr/src/app docker: - - image: banian/node + - image: banian/node-headless-chrome steps: # Checkout repository - checkout @@ -33,4 +33,4 @@ jobs: # Test - run: name: Tests - command: yarn test && yarn codecov \ No newline at end of file + command: yarn test && yarn codecov diff --git a/package.json b/package.json index 663dc0afc..c92573a21 100644 --- a/package.json +++ b/package.json @@ -31,12 +31,7 @@ ], "jest": { "testEnvironment": "node", - "coverageDirectory": "./coverage/", - "collectCoverage": true, - "collectCoverageFrom": [ - "lib", - "src" - ] + "collectCoverage": true }, "dependencies": { "@nuxtjs/axios": "^5.0.0-rc.2", diff --git a/test/module.test.js b/test/module.test.js index 4987ff89d..8fc29b8df 100644 --- a/test/module.test.js +++ b/test/module.test.js @@ -15,7 +15,7 @@ describe('auth', () => { }) nuxt = new Nuxt(config) - // await new Builder(nuxt).build() + await new Builder(nuxt).build() await nuxt.listen(process.env.PORT) }, 60000)