With our current test situation, we have a commonality between most of our tests. In each one of them, we're importing 'react-testing-library/cleanup-after-each' in our __tests__/calculator.js, and __tests__/auto-scaling-text.js, and __tests__/calculator-display.js.
__tests__/auto-scaling-text.js
1 import 'react-testing-library/cleanup-after-each' 2 import React from 'react' 3 import {render} from 'react-testing-library' 4 import AutoScalingText from '../auto-scaling-text' 5 6 test('renders', () => { 7 const {container} = render(<AutoScalingText />) 8 console.log(container.innerHTML) 9 })