Skip to content

Commit

Permalink
fix(@jcoreio/toolchain-mocha): simplify spec config
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Mar 13, 2024
1 parent 3e681f1 commit 416af63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .mocharc-integration.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ const { getSpecs } = require('@jcoreio/toolchain-mocha')

module.exports = {
...require('./.mocharc.cjs'),
spec: getSpecs(['test/integration/**/*.js']),
spec: getSpecs(['test/integration']),
}
2 changes: 1 addition & 1 deletion .mocharc-unit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ const { getSpecs } = require('@jcoreio/toolchain-mocha')

module.exports = {
...require('./.mocharc.cjs'),
spec: getSpecs(['test/unit/**/*.js']),
spec: getSpecs(['test/unit']),
}
9 changes: 1 addition & 8 deletions packages/mocha/plugins/mochaSpecs.cjs
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
const getPluginsArraySync = require('@jcoreio/toolchain/util/getPluginsArraySync.cjs')

module.exports = [
() => [
`test/**/*.{${getPluginsArraySync('sourceExtensions').join(',')}}`,
`src/**/__tests__/*.{${getPluginsArraySync('sourceExtensions').join(',')}}`,
],
]
module.exports = [() => ['test', 'src/**/__tests__']]

0 comments on commit 416af63

Please sign in to comment.