[READ-ONLY] Mirror of https://github.com/danielroe/ripple-framework. Ripple is the presentation layer for building websites on the DPC Single Digital Presence platform.
0

Configure Feed

Select the types of activity you want to include in your feed.

test: :white_check_mark: mock console in jest

Suppress warnings for console methods by mocking them

+10 -1
+8
__tests__/setup.js
··· 1 + global.console = { 2 + ...console, 3 + log: jest.fn(), 4 + debug: jest.fn(), 5 + info: jest.fn(), 6 + warn: jest.fn(), 7 + error: jest.fn() 8 + }
+2 -1
jest.config.js
··· 22 22 '\\.(mdx|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|svg)$': 23 23 '<rootDir>/__mocks__/fileMock.js', 24 24 '\\.(css|scss)$': '<rootDir>/__mocks__/styleMock.js' 25 - } 25 + }, 26 + setupFilesAfterEnv: ['<rootDir>/__tests__/setup.js'] 26 27 }