import { mount } from 'enzyme'; import React from 'react'; import useMounted from '../hooks/useMounted'; describe('useMounted', () => { it('should work properly', () => { let isMounted = null; const AutoUnmounted = () => { isMounted = useMounted(); return