supress recharts react warnings in test

This commit is contained in:
Ryan Vazquez
2020-12-04 15:31:38 -05:00
parent 3a50df5ee3
commit cd26fb6577
@@ -27,6 +27,9 @@ import { AlertCost } from '../../types';
import { defaultCurrencies } from '../../utils/currency';
import { findAlways } from '../../utils/assert';
// suppress recharts componentDidUpdate deprecation warnings
jest.spyOn(console, 'warn').mockImplementation(() => {});
const engineers = findAlways(defaultCurrencies, c => c.kind === null);
const MockProject = 'test-project-1';