@jcoreio/toolchain-mocha 1.0.0-beta.10 → 1.0.0-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcoreio/toolchain-mocha",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.3",
4
4
  "description": "Mocha build toolchain",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,28 +19,12 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "dedent-js": "^1.0.1",
22
- "mocha": "^10.2.0",
22
+ "mocha": "^9.1.3",
23
23
  "nyc": "^15.1.0",
24
- "resolve-bin": "^1.0.0",
25
- "@jcoreio/toolchain": "1.0.0-beta.10"
24
+ "resolve-bin": "^1.0.0"
26
25
  },
27
26
  "peerDependencies": {
28
- "@jcoreio/toolchain": "1.0.0-beta.10"
29
- },
30
- "toolchainManaged": {
31
- "devDependencies": {
32
- "mocha": "*"
33
- },
34
- "optionalDevDependencies": {
35
- "@types/chai": "^4.3.5",
36
- "@types/chai-as-promised": "^7.1.5",
37
- "@types/chai-datetime": "^0.0.37",
38
- "@types/chai-subset": "^1.3.3",
39
- "@types/mocha": "^10.0.1",
40
- "chai": "^4.3.7",
41
- "chai-as-promised": "^7.1.1",
42
- "chai-datetime": "^1.8.0",
43
- "chai-subset": "^1.6.0"
44
- }
27
+ "mocha": "^9.1.3",
28
+ "@jcoreio/toolchain": "1.0.0-beta.3"
45
29
  }
46
30
  }
@@ -0,0 +1,7 @@
1
+ const execa = require('@jcoreio/toolchain/util/execa.cjs')
2
+
3
+ module.exports = [
4
+ async (args = []) => {
5
+ await execa('nyc', ['mocha', ...args])
6
+ },
7
+ ]
@@ -1,8 +1,5 @@
1
1
  const getPluginsArraySync = require('@jcoreio/toolchain/util/getPluginsArraySync.cjs')
2
2
 
3
3
  module.exports = [
4
- () => [
5
- `test/**/*.{${getPluginsArraySync('sourceExtensions').join(',')}}`,
6
- `**/__tests__/*.{${getPluginsArraySync('sourceExtensions').join(',')}}`,
7
- ],
4
+ () => [`test/**/*.{${getPluginsArraySync('sourceExtensions').join(',')}}`],
8
5
  ]
@@ -0,0 +1,7 @@
1
+ const execa = require('@jcoreio/toolchain/util/execa.cjs')
2
+
3
+ module.exports = [
4
+ async (args = []) => {
5
+ await execa('mocha', args)
6
+ },
7
+ ]
@@ -1,18 +0,0 @@
1
- const execa = require('@jcoreio/toolchain/util/execa.cjs')
2
-
3
- module.exports = [
4
- {
5
- coverage: {
6
- description: 'run tests with code coverage',
7
- run: async (args = []) => {
8
- await execa('nyc', ['mocha', ...args])
9
- },
10
- },
11
- test: {
12
- description: 'run tests',
13
- run: async (args = []) => {
14
- await execa('mocha', [...args])
15
- },
16
- },
17
- },
18
- ]