Skip to content

Commit

Permalink
ci: exclude some code/files from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Melchyore committed May 2, 2023
1 parent d20b74d commit d2f207e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
"include": [
"src/**/*.ts",
"providers/**/*.ts"
],
"exclude": [
"src/Bindings/Repl/index.ts",
"src/TagSet.ts"
]
}
4 changes: 4 additions & 0 deletions providers/CacheProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default class CacheProvider {
return new CacheManager(this.app, config)
})

/* istanbul ignore next */
this.app.container.singleton('Adonis/Addons/Cache/Stores', () => {
return {
BaseCacheStore: require('../src/Stores/BaseStore').default,
Expand Down Expand Up @@ -43,13 +44,15 @@ export default class CacheProvider {
* Do not register repl binding when not running in "repl"
* environment
*/
/* istanbul ignore next */
if (this.app.environment !== 'repl') {
return
}

/**
* Define REPL bindings
*/
/* istanbul ignore next */
this.app.container.withBindings(['Adonis/Addons/Repl'], (Repl) => {
const { defineReplBindings } = require('../src/Bindings/Repl')

Expand All @@ -69,6 +72,7 @@ export default class CacheProvider {
return
}

/* istanbul ignore next */
this.app.container.withBindings(
['Adonis/Core/Server', 'Adonis/Addons/Cache'],
(Server, Cache) => {
Expand Down

0 comments on commit d2f207e

Please sign in to comment.