-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(logs): replace chalk by ansi-styles
- Loading branch information
Showing
16 changed files
with
2,679 additions
and
4,359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,8 +20,7 @@ jobs: | |
runs-on: ... | ||
steps: | ||
- uses: actions/stale@... | ||
with: | ||
... | ||
with: ... | ||
``` | ||
|
||
## Further context | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!-- List the change(s) you're making with this PR. --> | ||
|
||
## Changes | ||
|
||
- [x] ... | ||
|
||
## Context | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import chalk from 'chalk'; | ||
|
||
// Disabled the colors to: | ||
// - improve the performances | ||
// - avoid to mock chalk | ||
// - avoid to mock styles | ||
// - avoid to have failing tests when testing the logs due to the extra text the log message will contains | ||
// | ||
// Note: | ||
// If you need to debug the log colours you can remove this line temporarily | ||
// But some tests will fail | ||
chalk.level = 0; | ||
jest.mock('ansi-styles'); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.