Skip to content

Commit 62840ba

Browse files
committed
feat(core): changed NOT PASSED message to FAILED on results
1 parent 7db79d7 commit 62840ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/cli/src/formatters/pretty.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const pretty: Formatter = (results: ISpectralDiagnostic[], options: Forma
113113
if (scoring >= options.scoringConfig.threshold) {
114114
output += chalk['green'].bold(`\u2716 PASSED!\n`);
115115
} else {
116-
output += chalk['red'].bold(`\u2716 NOT PASSED!\n`);
116+
output += chalk['red'].bold(`\u2716 FAILED!\n`);
117117
}
118118
}
119119

packages/cli/src/formatters/stylish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const stylish: Formatter = (results: ISpectralDiagnostic[], options: Form
123123
if (scoring >= options.scoringConfig.threshold) {
124124
output += chalk['green'].bold(`\u2716 PASSED!\n`);
125125
} else {
126-
output += chalk['red'].bold(`\u2716 NOT PASSED!\n`);
126+
output += chalk['red'].bold(`\u2716 FAILED!\n`);
127127
}
128128
}
129129

test-harness/scenarios/overrides/aliases-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ module.exports = {
130130

131131
✖ 4 problems (1 error, 1 warning, 1 info, 1 hint)
132132
✖ SCORING: E (42%)
133-
NOT PASSED!
133+
FAILED!

test-harness/scenarios/severity/fail-on-error-scoring.scenario

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ Will fail and return 1 as exit code because errors exist with scoring data
7575

7676
✖ 3 problems (2 errors, 1 warning, 0 infos, 0 hints)
7777
✖ SCORING: E (32%)
78-
NOT PASSED!
78+
FAILED!

0 commit comments

Comments
 (0)