import React from 'react';
import { View } from 'react-native';
import * as renderer from 'react-test-renderer';
import {
withReanimatedTimer,
advanceAnimationByTime,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
} from 'react-native-reanimated/lib/reanimated2/jestUtils';
import { BarButton, TabBarButton } from '../components/tab.bar.button';
const tabBarIcon = (props: any) => ;
describe('TabBarButton', () => {
beforeAll(() => {
jest.useFakeTimers();
});
afterAll(() => {
jest.useRealTimers();
});
it("Should render well when it's Focus", () => {
withReanimatedTimer(() => {
const tree = renderer.create(
);
advanceAnimationByTime(500);
expect(tree.toJSON()).toMatchSnapshot();
});
});
it('Should render well it is not focused', () => {
withReanimatedTimer(() => {
const tree = renderer.create(
);
advanceAnimationByTime(500);
expect(tree.toJSON()).toMatchSnapshot();
});
});
it("Should render well when it's Focus", () => {
withReanimatedTimer(() => {
const tree = renderer.create(
);
advanceAnimationByTime(500);
expect(tree.toJSON()).toMatchSnapshot();
});
});
it('Should render well it is not focused', () => {
withReanimatedTimer(() => {
const tree = renderer.create(
);
advanceAnimationByTime(500);
expect(tree.toJSON()).toMatchSnapshot();
});
});
it('Should render well it is not focused', () => {
withReanimatedTimer(() => {
const tree = renderer.create(
);
advanceAnimationByTime(500);
expect(tree.toJSON()).toMatchSnapshot();
});
});
});