diff --git a/packages/visx-xychart/test/components/BarGroup.test.tsx b/packages/visx-xychart/test/components/BarGroup.test.tsx
index a492b53d5..f7b64decc 100644
--- a/packages/visx-xychart/test/components/BarGroup.test.tsx
+++ b/packages/visx-xychart/test/components/BarGroup.test.tsx
@@ -1,6 +1,7 @@
import React, { useEffect } from 'react';
+import { animated } from 'react-spring';
import { mount } from 'enzyme';
-import { BarGroup, BarSeries, DataProvider, useEventEmitter } from '../../src';
+import { AnimatedBarGroup, BarGroup, BarSeries, DataProvider, useEventEmitter } from '../../src';
import setupTooltipTest from '../mocks/setupTooltipTest';
const providerProps = {
@@ -77,7 +78,7 @@ describe('', () => {
setupTooltipTest(
<>
-
+
@@ -87,3 +88,22 @@ describe('', () => {
);
});
});
+
+describe('', () => {
+ it('should be defined', () => {
+ expect(AnimatedBarGroup).toBeDefined();
+ });
+ it('should render an animated.rect', () => {
+ const wrapper = mount(
+
+
+ ,
+ );
+ expect(wrapper.find(animated.rect)).toHaveLength(4);
+ });
+});
diff --git a/packages/visx-xychart/test/components/BarSeries.test.tsx b/packages/visx-xychart/test/components/BarSeries.test.tsx
index e6633ad56..19b9bf5d9 100644
--- a/packages/visx-xychart/test/components/BarSeries.test.tsx
+++ b/packages/visx-xychart/test/components/BarSeries.test.tsx
@@ -1,6 +1,7 @@
import React, { useContext, useEffect } from 'react';
+import { animated } from 'react-spring';
import { mount } from 'enzyme';
-import { DataContext, BarSeries, useEventEmitter } from '../../src';
+import { DataContext, AnimatedBarSeries, BarSeries, useEventEmitter } from '../../src';
import getDataContext from '../mocks/getDataContext';
import setupTooltipTest from '../mocks/setupTooltipTest';
@@ -62,3 +63,19 @@ describe('', () => {
);
});
});
+
+describe('', () => {
+ it('should be defined', () => {
+ expect(AnimatedBarSeries).toBeDefined();
+ });
+ it('should render an animated.rect', () => {
+ const wrapper = mount(
+
+
+ ,
+ );
+ expect(wrapper.find(animated.rect)).toHaveLength(series.data.length);
+ });
+});
diff --git a/packages/visx-xychart/test/components/BarStack.test.tsx b/packages/visx-xychart/test/components/BarStack.test.tsx
index a34edaafa..ec50b9414 100644
--- a/packages/visx-xychart/test/components/BarStack.test.tsx
+++ b/packages/visx-xychart/test/components/BarStack.test.tsx
@@ -1,6 +1,14 @@
import React, { useContext, useEffect } from 'react';
import { mount } from 'enzyme';
-import { BarStack, BarSeries, DataProvider, DataContext, useEventEmitter } from '../../src';
+import { animated } from 'react-spring';
+import {
+ BarStack,
+ BarSeries,
+ DataProvider,
+ DataContext,
+ useEventEmitter,
+ AnimatedBarStack,
+} from '../../src';
import setupTooltipTest from '../mocks/setupTooltipTest';
const providerProps = {
@@ -108,7 +116,7 @@ describe('', () => {
setupTooltipTest(
<>
-
+
@@ -118,3 +126,22 @@ describe('', () => {
);
});
});
+
+describe('', () => {
+ it('should be defined', () => {
+ expect(AnimatedBarStack).toBeDefined();
+ });
+ it('should render an animated.rect', () => {
+ const wrapper = mount(
+
+
+ ,
+ );
+ expect(wrapper.find(animated.rect)).toHaveLength(4);
+ });
+});
diff --git a/packages/visx-xychart/test/components/LineSeries.test.tsx b/packages/visx-xychart/test/components/LineSeries.test.tsx
index 7a0ab8890..928ae7116 100644
--- a/packages/visx-xychart/test/components/LineSeries.test.tsx
+++ b/packages/visx-xychart/test/components/LineSeries.test.tsx
@@ -1,7 +1,8 @@
import React, { useContext, useEffect } from 'react';
+import { animated } from 'react-spring';
import { mount } from 'enzyme';
import { LinePath } from '@visx/shape';
-import { DataContext, LineSeries, useEventEmitter } from '../../src';
+import { AnimatedLineSeries, DataContext, LineSeries, useEventEmitter } from '../../src';
import getDataContext from '../mocks/getDataContext';
import setupTooltipTest from '../mocks/setupTooltipTest';
@@ -64,3 +65,19 @@ describe('', () => {
);
});
});
+
+describe('', () => {
+ it('should be defined', () => {
+ expect(AnimatedLineSeries).toBeDefined();
+ });
+ it('should render an animated.path', () => {
+ const wrapper = mount(
+
+
+ ,
+ );
+ expect(wrapper.find(animated.path)).toHaveLength(1);
+ });
+});