Skip to content

Commit

Permalink
Feature/1047 improve test coverage (#108)
Browse files Browse the repository at this point in the history
* Add unit tests to bring coverage up to 90%+

remove redundant nyc config

Set up dir structure for tests

Set up dir structure for tests

Add inspect util for ease of testing

working on quotes error test

Add istanbul ignore comments for mockgen only files

working on health check mocks

Working on config mocks

Add bulk quotes not implemented tests

Working on health check tests

Working on health check tests

remove unused comments

working on quotes test

working on config default tests

working on utils tests

working on utils tests

find and replace all stack inspection

find and replace all stack inspection

Working on quote tests

Move http into its own library for ease of mocking

Move http into its own library for ease of mocking

fix existing tests once mocking out http

add tests for handleException

add tests for handleException

add tests for handleException

finish getting model testing up to scratch

fix missing conditions on rule engine tests

Add tests for http

refactor start script to improve tests

work on server testing

working on database mocking

working on knex mocks

working on knex mocks

working on knex mocks

working on knex mocks

working on knex mocks

replace err.stack || util.inspect(err) with getStackOrInspect

work on quite tests

work on quite tests

finish work on cachedDatabase

update dependencies, bump package version to 8.7.0

* remove unneeded test files

* run standard --fix

* bump package version to 8.7.1-snapshot

* bump package version to 8.7.2-snapshot
  • Loading branch information
lewisdaly authored Dec 17, 2019
1 parent 8c1a145 commit 396a996
Show file tree
Hide file tree
Showing 38 changed files with 4,916 additions and 245 deletions.
10 changes: 10 additions & 0 deletions .nycrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
temp-directory: "./.nyc_output"
reporter: [
"lcov",
"text-summary"
]
exclude: [
"**/node_modules/**",
'**/migrations/**',
'**/docs/**'
]
13 changes: 12 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@

const path = require('path')

module.exports = {
verbose: true,
collectCoverageFrom: [
'**/src/**/**/*.js'
],
coverageThreshold: {
global: {
statements: 90,
functions: 90,
branches: 90,
lines: 90
}
},
globals: {
__SRC__: path.resolve(__dirname, 'src'),
__ROOT__: path.resolve(__dirname)
Expand Down
Loading

0 comments on commit 396a996

Please sign in to comment.