@toptal/davinci-monorepo 8.1.4-alpha-CRT-5891-create-coverage-command-9655bb3f.1 → 8.1.4-alpha-CRT-5891-create-coverage-command-2488e674.2

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.
@@ -7,6 +7,7 @@ import { createGraphGenerateCommand } from '../src/commands/graph-generate.js'
7
7
  import metricsCommand from '../src/commands/metrics.js'
8
8
  // eslint-disable-next-line no-restricted-syntax
9
9
  import codeownersCommand from '../src/commands/codeowners/index.js'
10
+ import { coverageCommand } from '../src/commands/coverage.js'
10
11
 
11
12
  cliEngine.loadCommands(
12
13
  [
@@ -14,6 +15,7 @@ cliEngine.loadCommands(
14
15
  createGraphGenerateCommand,
15
16
  metricsCommand,
16
17
  codeownersCommand,
18
+ coverageCommand,
17
19
  ],
18
20
  'davinci-monorepo'
19
21
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-monorepo",
3
- "version": "8.1.4-alpha-CRT-5891-create-coverage-command-9655bb3f.1+9655bb3f",
3
+ "version": "8.1.4-alpha-CRT-5891-create-coverage-command-2488e674.2+2488e674",
4
4
  "description": "Monorepo utility tools",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@nodelib/fs.walk": "^1.2.6",
37
37
  "@oclif/core": "^1.16.1",
38
- "@toptal/davinci-cli-shared": "2.3.1-alpha-CRT-5891-create-coverage-command-9655bb3f.33+9655bb3f",
38
+ "@toptal/davinci-cli-shared": "2.3.1-alpha-CRT-5891-create-coverage-command-2488e674.34+2488e674",
39
39
  "chalk": "^4.1.2",
40
40
  "codeowners": "5.1.1",
41
41
  "dependency-cruiser": "^12.5.0",
@@ -53,5 +53,5 @@
53
53
  "devDependencies": {
54
54
  "@jest/globals": "^29.4.2"
55
55
  },
56
- "gitHead": "9655bb3fabd7a3cdc9ae9b16233797f9ac5d6260"
56
+ "gitHead": "2488e6747994019dbeab8517629432f68e9af814"
57
57
  }
@@ -0,0 +1,61 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`groupCoverageByCodeownersCommand has the correct command structure 1`] = `
4
+ "{
5
+ "_events": {},
6
+ "_eventsCount": 1,
7
+ "commands": [],
8
+ "options": [
9
+ {
10
+ "flags": "-r, --repository <repository_name>",
11
+ "description": "specify repository name",
12
+ "required": true,
13
+ "optional": false,
14
+ "variadic": false,
15
+ "mandatory": true,
16
+ "short": "-r",
17
+ "long": "--repository",
18
+ "negate": false,
19
+ "hidden": false,
20
+ "conflictsWith": []
21
+ }
22
+ ],
23
+ "parent": null,
24
+ "_allowUnknownOption": false,
25
+ "_allowExcessArguments": true,
26
+ "_args": [],
27
+ "args": [],
28
+ "rawArgs": [],
29
+ "processedArgs": [],
30
+ "_scriptPath": null,
31
+ "_name": "group-coverage-by-codeowners",
32
+ "_optionValues": {},
33
+ "_optionValueSources": {},
34
+ "_storeOptionsAsProperties": false,
35
+ "_executableHandler": false,
36
+ "_executableFile": null,
37
+ "_executableDir": null,
38
+ "_defaultCommandName": null,
39
+ "_exitCallback": null,
40
+ "_aliases": [],
41
+ "_combineFlagAndOptionalValue": true,
42
+ "_description": "TODO: group-coverage-by-codeowners",
43
+ "_summary": "",
44
+ "_enablePositionalOptions": false,
45
+ "_passThroughOptions": false,
46
+ "_lifeCycleHooks": {},
47
+ "_showHelpAfterError": false,
48
+ "_showSuggestionAfterError": true,
49
+ "_outputConfiguration": {},
50
+ "_hidden": false,
51
+ "_hasHelpOption": true,
52
+ "_helpFlags": "-h, --help",
53
+ "_helpDescription": "display help for command",
54
+ "_helpShortFlag": "-h",
55
+ "_helpLongFlag": "--help",
56
+ "_helpCommandName": "help",
57
+ "_helpCommandnameAndArgs": "help [command]",
58
+ "_helpCommandDescription": "display help for command",
59
+ "_helpConfiguration": {}
60
+ }"
61
+ `;
@@ -0,0 +1,23 @@
1
+ import { jest } from '@jest/globals'
2
+ // eslint-disable-next-line import/no-extraneous-dependencies
3
+ import { Command } from 'commander'
4
+
5
+ import { groupCoverageByCodeownersCommand } from './group-coverage-by-codeowners.js'
6
+
7
+ describe('groupCoverageByCodeownersCommand', () => {
8
+ let program
9
+
10
+ beforeEach(() => {
11
+ program = new Command()
12
+ })
13
+
14
+ afterEach(() => {
15
+ jest.clearAllMocks()
16
+ })
17
+
18
+ it('has the correct command structure', () => {
19
+ const command = groupCoverageByCodeownersCommand(program)
20
+
21
+ expect(JSON.stringify(command, null, 2)).toMatchSnapshot()
22
+ })
23
+ })