From 9569003b5bc1e3533f59df56690a3a6cd528f6ca Mon Sep 17 00:00:00 2001 From: Christine Dolendo Date: Mon, 25 Feb 2019 20:32:34 -0800 Subject: [PATCH] [#151817717] - Adjusted test config for unit tests --- bin/rails | 5 ----- package.json | 6 ++---- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/bin/rails b/bin/rails index ce1b1d67a..5badb2fde 100755 --- a/bin/rails +++ b/bin/rails @@ -1,9 +1,4 @@ #!/usr/bin/env ruby -if ENV['RAILS_ENV'] == 'test' - require 'simplecov' - SimpleCov.start 'rails' - puts "required simplecov" -end begin load File.expand_path('../spring', __FILE__) rescue LoadError => e diff --git a/package.json b/package.json index 141a7cd2d..44c9c9644 100644 --- a/package.json +++ b/package.json @@ -65,17 +65,15 @@ "webpack-dev-server": "^2.9.3" }, "scripts": { - "unit": "jest --testPathPattern=.*.test.js$", + "unit": "jest --testPathPattern=.*.test.js$ --coverage", "e2e": "jest --testPathPattern=.*e2e.* --runInBand", "test:all": "jest", - "test:unit": "jest --testPathPattern=.*.test.js$", + "test:unit": "jest --testPathPattern=.*.test.js$ --coverage", "test:e2e": "jest --testPathPattern=.*e2e.* --runInBand", "lint": "standard \"./**/*.js\" | snazzy", "lint:fix": "standard \"./**/*.js\" --fix | snazzy" }, "jest": { - "collectCoverage": true, - "coverageReporters": ["lcov"], "testMatch": [ "**/__tests__/**/*.js?(x)", "**/?(*.)+(spec|test|e2e).js?(x)"