Skip to content

Commit 7e6f9e7

Browse files
committed
test: add test for turborepo-matching auto color order
Verify that ACCEPTABLE_CONSOLE_COLORS follows the same color sequence used by turborepo: cyan, magenta, green, yellow, blue.
1 parent 008b526 commit 7e6f9e7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/prefix-color-selector.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,14 @@ describe('#ACCEPTABLE_CONSOLE_COLORS', () => {
180180
// always has more than one entry, which is what we enforce via this test
181181
expect(PrefixColorSelector.ACCEPTABLE_CONSOLE_COLORS.length).toBeGreaterThan(1);
182182
});
183+
184+
it('uses the same color order as turborepo', () => {
185+
expect(PrefixColorSelector.ACCEPTABLE_CONSOLE_COLORS).toEqual([
186+
'cyan',
187+
'magenta',
188+
'green',
189+
'yellow',
190+
'blue',
191+
]);
192+
});
183193
});

0 commit comments

Comments
 (0)