diff --git a/src/native/__tests__/ContentLoader.test.tsx b/src/native/__tests__/ContentLoader.test.tsx index f21522ba..81c525e2 100644 --- a/src/native/__tests__/ContentLoader.test.tsx +++ b/src/native/__tests__/ContentLoader.test.tsx @@ -5,6 +5,8 @@ import * as ShallowRenderer from 'react-test-renderer/shallow' import ContentLoader, { Circle, Rect } from '../ContentLoader' +jest.useFakeTimers() + describe('ContentLoader', () => { describe('when type is custom', () => { const customWrapper = renderer.create( diff --git a/src/native/__tests__/Svg.test.tsx b/src/native/__tests__/Svg.test.tsx index 6cf96119..71afb00b 100644 --- a/src/native/__tests__/Svg.test.tsx +++ b/src/native/__tests__/Svg.test.tsx @@ -9,6 +9,8 @@ interface IPredicateArgs { props: any } +jest.useFakeTimers() + describe('Svg', () => { const wrapper = renderer.create().root const predicateRectClipPath = ({ type, props }: IPredicateArgs) => diff --git a/src/native/__tests__/presets/BulletListStyle.test.tsx b/src/native/__tests__/presets/BulletListStyle.test.tsx index a8267081..e7d24099 100644 --- a/src/native/__tests__/presets/BulletListStyle.test.tsx +++ b/src/native/__tests__/presets/BulletListStyle.test.tsx @@ -5,6 +5,8 @@ import * as renderer from 'react-test-renderer' import BulletListStyle from '../../presets/BulletListStyle' +jest.useFakeTimers() + describe('BulletListStyle', () => { const wrapper = renderer.create( diff --git a/src/native/__tests__/presets/CodeStyle.test.tsx b/src/native/__tests__/presets/CodeStyle.test.tsx index 7062076c..1fe3cb40 100644 --- a/src/native/__tests__/presets/CodeStyle.test.tsx +++ b/src/native/__tests__/presets/CodeStyle.test.tsx @@ -5,6 +5,8 @@ import * as renderer from 'react-test-renderer' import CodeStyle from '../../presets/CodeStyle' +jest.useFakeTimers() + describe('CodeStyle', () => { const wrapper = renderer.create( diff --git a/src/native/__tests__/presets/FacebookStyle.test.tsx b/src/native/__tests__/presets/FacebookStyle.test.tsx index 5579dcb5..c2615dea 100644 --- a/src/native/__tests__/presets/FacebookStyle.test.tsx +++ b/src/native/__tests__/presets/FacebookStyle.test.tsx @@ -5,6 +5,8 @@ import * as renderer from 'react-test-renderer' import FacebookStyle from '../../presets/FacebookStyle' +jest.useFakeTimers() + describe('FacebookStyle', () => { const wrapper = renderer.create( diff --git a/src/native/__tests__/presets/InstagramStyle.test.tsx b/src/native/__tests__/presets/InstagramStyle.test.tsx index a876b935..28f3ade9 100644 --- a/src/native/__tests__/presets/InstagramStyle.test.tsx +++ b/src/native/__tests__/presets/InstagramStyle.test.tsx @@ -5,6 +5,8 @@ import * as renderer from 'react-test-renderer' import InstagramStyle from '../../presets/InstagramStyle' +jest.useFakeTimers() + describe('InstagramStyle', () => { const wrapper = renderer.create( diff --git a/src/native/__tests__/presets/ListStyle.test.tsx b/src/native/__tests__/presets/ListStyle.test.tsx index b11387a3..fb7371c6 100644 --- a/src/native/__tests__/presets/ListStyle.test.tsx +++ b/src/native/__tests__/presets/ListStyle.test.tsx @@ -5,6 +5,8 @@ import * as renderer from 'react-test-renderer' import ListStyle from '../../presets/ListStyle' +jest.useFakeTimers() + describe('ListStyle', () => { const wrapper = renderer.create( diff --git a/src/native/__tests__/snapshots.test.tsx b/src/native/__tests__/snapshots.test.tsx index f9857290..dcc6bf60 100644 --- a/src/native/__tests__/snapshots.test.tsx +++ b/src/native/__tests__/snapshots.test.tsx @@ -3,6 +3,8 @@ import * as renderer from 'react-test-renderer' import ContentLoader, { Rect } from '../ContentLoader' +jest.useFakeTimers() + describe('ContentLoader snapshots', () => { test('renders correctly the basic version', () => { const wrapper = renderer.create(