mirror of
https://github.com/status-im/metro.git
synced 2025-03-02 03:30:53 +00:00
added new property to mock in chalk.js
Summary: Tests started [failing](https://travis-ci.org/facebook/react-native/jobs/163517412) with release of new babel that uses chalk.white.bgRed in code. Jest does not like chalk and needs it mocked. Removed code duplication and patched the mock. Closes https://github.com/facebook/react-native/pull/10169 Differential Revision: D3943493 Pulled By: davidaurelio fbshipit-source-id: 11f57f60ed909a394f15de7b9cc511400aeff510
This commit is contained in:
parent
e150ceb58a
commit
6c1f9f99be
@ -18,6 +18,10 @@ mockColor.bold = function() {
|
||||
return {};
|
||||
};
|
||||
|
||||
mockColor.bgRed = function() {
|
||||
return {};
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
dim: s => s,
|
||||
magenta: mockColor,
|
||||
|
Loading…
x
Reference in New Issue
Block a user