Skip to content

Commit 7ba4334

Browse files
authored
feat!: Remove setupEnzyme helper and unmark RadialProgress as deprecated (#3337)
* remove setupenzyme * remove deprecated from radialprogress * add version plan
1 parent 80719f3 commit 7ba4334

3 files changed

Lines changed: 7 additions & 17 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
gamut-tests: major
3+
gamut: minor
4+
---
5+
6+
remove setupEnzyme and remove deprecated comment for RadialProgress

packages/gamut-tests/src/index.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { GamutProvider, theme } from '@codecademy/gamut-styles';
2-
import {
3-
setupEnzyme as setupEnzymeBase,
4-
setupRtl as setupRtlBase,
5-
} from 'component-test-setup';
2+
import { setupRtl as setupRtlBase } from 'component-test-setup';
63
import overArgs from 'lodash/overArgs';
74
import * as React from 'react';
85

@@ -38,14 +35,6 @@ function withMockGamutProvider<Props extends JSX.IntrinsicAttributes>(
3835

3936
// overArgs isn't fully typed yet for lack of curried generics, so we have to cast it...
4037

41-
/**
42-
* @deprecated Enzyme is no longer being maintained. Use RTL instead.
43-
*/
44-
export const setupEnzyme = overArgs(
45-
setupEnzymeBase,
46-
withMockGamutProvider
47-
) as typeof setupEnzymeBase;
48-
4938
export const setupRtl = overArgs(
5039
setupRtlBase,
5140
withMockGamutProvider

packages/gamut/src/RadialProgress/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ const RadialProgressWrapper = styled.figure<{ size: number | string }>(
3333
})
3434
);
3535

36-
/**
37-
* @deprecated
38-
* This component is deprecated and is no longer supported.
39-
*/
40-
4136
export const RadialProgress: React.FC<RadialProgressProps> = ({
4237
children,
4338
className,

0 commit comments

Comments
 (0)