CHANGE @W-17053004@ Polished run command output #1517
Annotations
2 errors
Run yarn test:
test/lib/viewers/ResultsViewer.test.ts#L180
expect(received).toContain(expected) // indexOf
Expected substring: "Found 1 violation(s) across 1 file(s):
=== 1. stub1RuleA
severity: 4 (Low)
engine: stubEngine1
message: This is a message
locations:
D:\\a\\sfdx-scanner\\sfdx-scanner\\test\\sample-code\\fileA.cls:20:1
(main) D:\\a\\sfdx-scanner\\sfdx-scanner\\test\\sample-code\\fileZ.cls:2:1 This is a comment at Location 2
D:\\a\\sfdx-scanner\\sfdx-scanner\\test\\sample-code\\fileA.cls:1:1 This is a comment at Location 3
resources: https://example.com/stub1RuleA
"
Received string: "
=== 1. stub1RuleA
severity: 4 (Low)
engine: stubEngine1
message: This is a message
locations:
D:\\a\\sfdx-scanner\\sfdx-scanner\\test\\sample-code\\fileA.cls:20:1
(main) D:\\a\\sfdx-scanner\\sfdx-scanner\\test\\sample-code\\fileZ.cls:2:1 This is a comment at Location 2
D:\\a\\sfdx-scanner\\sfdx-scanner\\test\\sample-code\\fileA.cls:1:1 This is a comment at Location 3
resources: https://example.com/stub1RuleA
"
at Object.<anonymous> (test/lib/viewers/ResultsViewer.test.ts:180:28)
|
Run yarn test
Process completed with exit code 1.
|
Loading