Skip to content

Commit e121ebf

Browse files
committed
test: clarify comments
this only disables the colouring, not formatting functions (e.g. bold).
1 parent 481e3c4 commit e121ebf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cli-config/src/__tests__/index-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ test('should load commands from "react-native-foo" and "react-native-bar" packag
259259
});
260260

261261
test('should not skip packages that have invalid configuration (to avoid breaking users)', async () => {
262-
process.env.NO_COLOR = '1'; // To disable picocolors
262+
process.env.NO_COLOR = '1'; // To disable colours from picocolors
263263
DIR = getTempDirectory('config_test_skip');
264264
writeFiles(DIR, {
265265
'node_modules/react-native/package.json': '{}',

packages/cli-platform-apple/src/tools/__tests__/getBuildConfigurationFromXcScheme.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ describe('getBuildConfigurationFromXcScheme', () => {
4848
});
4949

5050
it('throws CLIError when reading the shared scheme file fails', () => {
51-
process.env.NO_COLOR = '1'; // To disable picocolors
51+
process.env.NO_COLOR = '1'; // To disable colours from picocolors
5252
(fs.readdirSync as jest.Mock).mockReturnValue(['Test.xcodeproj']);
5353
(fs.readFileSync as jest.Mock).mockImplementation(() => {
5454
throw new Error('File not found');

0 commit comments

Comments
 (0)