Skip to content

Commit

Permalink
[#151817717] - Adjusted test config for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdolendo committed Feb 26, 2019
1 parent efda51a commit 9569003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions bin/rails
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 9569003

Please sign in to comment.