Skip to content

refactor: move devices:capability-status command to yargs #563

refactor: move devices:capability-status command to yargs

refactor: move devices:capability-status command to yargs #563

Triggered via pull request October 1, 2024 17:49
Status Failure
Total duration 1m 43s
Artifacts

ci.yaml

on: pull_request
lint-commits
17s
lint-commits
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 4 warnings
handler › throws exception for component with no capabilities: src/__tests__/commands/devices/capability-status.test.ts#L182
expect(received).toHaveBeenCalledExactlyOnceWith(expected) Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}} at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:182:31)
handler › calls formatAndWriteItem properly: src/__tests__/commands/devices/capability-status.test.ts#L205
expect(received).toHaveBeenCalledExactlyOnceWith(expected) Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}} at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:205:31)
build (22, macos-latest)
Process completed with exit code 1.
handler › throws exception for component with no capabilities: src/__tests__/commands/devices/capability-status.test.ts#L182
expect(received).toHaveBeenCalledExactlyOnceWith(expected) Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}} at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:182:31)
handler › calls formatAndWriteItem properly: src/__tests__/commands/devices/capability-status.test.ts#L205
expect(received).toHaveBeenCalledExactlyOnceWith(expected) Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}} at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:205:31)
build (22, ubuntu-latest)
Process completed with exit code 1.
handler › throws exception for component with no capabilities: src/__tests__/commands/devices/capability-status.test.ts#L182
expect(received).toHaveBeenCalledExactlyOnceWith(expected) Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}} at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:182:31)
handler › calls formatAndWriteItem properly: src/__tests__/commands/devices/capability-status.test.ts#L205
expect(received).toHaveBeenCalledExactlyOnceWith(expected) Expected mock function to have been called exactly once with [{"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}}, "argv-component-id"], but it was called with {"client": {"devices": {"get": [Function mockConstructor], "getCapabilityStatus": [Function mockConstructor]}}, "tableGenerator": {"newOutputTable": [Function mockConstructor]}} at Object.<anonymous> (src/__tests__/commands/devices/capability-status.test.ts:205:31)
build (22, windows-latest)
Process completed with exit code 1.
lint-commits
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (22, macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (22, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build (22, windows-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/