Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal: upgrade to TypeScript ^5.7.0 #1894

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
761d68c
deps: typescript ^4.8.0
williaster Dec 19, 2024
e7ec946
deps: ts-node ^10.9.1
williaster Dec 19, 2024
edd6b31
deps: jest
williaster Dec 19, 2024
837ee87
update jest.config.js
williaster Dec 19, 2024
43ce203
geo: bump topo types
williaster Dec 19, 2024
6ae05a1
wordcloud: bump d3-cloud + types
williaster Dec 19, 2024
646898b
remove @types/d3-cloud dep, copy local types
williaster Dec 19, 2024
b50f0e2
fix wordcloud types
williaster Dec 19, 2024
c58e8c3
fix wordcloud types
williaster Dec 19, 2024
bcc7a5a
zoom: update use-gesture
williaster Dec 19, 2024
74f4bf5
shape: relax type
williaster Dec 19, 2024
44462c6
add postinstall script
williaster Dec 19, 2024
e988ad3
add d3-cloud declaration
williaster Dec 19, 2024
d006445
Fix typescript error when accessing `error` in `scripts/updateTsRefer…
darthmaim Dec 19, 2024
1a02cb5
react-spring: update to ^9.7.5
williaster Dec 19, 2024
1beb5a3
react-spring: update to ^9.7.5
williaster Dec 19, 2024
40d0fb2
xychart: fix types
williaster Dec 19, 2024
9f34870
github: update workflows to node 18.8
williaster Dec 19, 2024
78b3995
udpate project refs
williaster Dec 19, 2024
3dc76f4
try ts 5.4
williaster Dec 19, 2024
628c464
bump @types/lodash throughout
williaster Dec 19, 2024
fb8bb3f
upgrade eslint and @typescript-eslint
williaster Dec 20, 2024
4abf7f7
lint fix - mostly for import type changes
williaster Dec 20, 2024
afac952
xychart: fix a lot of types, remove withRegisteredData because it's t…
williaster Dec 20, 2024
e86e658
typescript 5.7
williaster Dec 20, 2024
c8e2590
demo: include only .ts,.tsx files in tsconfig.json
williaster Dec 20, 2024
3fb907b
fix jest config
williaster Dec 20, 2024
31e8b6f
jest: add TextEncoder, TextDecoder to shims
williaster Dec 20, 2024
ece9d58
fix tests
williaster Dec 20, 2024
e3f22aa
lint
williaster Dec 20, 2024
b7a0edb
demo: fix build
williaster Dec 20, 2024
fa2f173
demo: fix build
williaster Dec 20, 2024
b3fcad1
demo: fix happo
williaster Dec 20, 2024
0cb4bc8
fix misc issues in scripts
williaster Dec 20, 2024
548f65a
group: export type to fix TS module issue
williaster Dec 20, 2024
f43a979
fix misc issues in scripts
williaster Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2 # checkout visx + this commit
- uses: actions/setup-node@v2
with:
node-version: '16.14.0'
node-version: '18.18.0'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fetch-depth: '0'
- uses: actions/setup-node@v2
with:
node-version: '16.14.0'
node-version: '18.18.0'
registry-url: 'https://registry.npmjs.org'

- name: Get yarn cache directory path
Expand Down
1 change: 0 additions & 1 deletion config-eslint/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ module.exports = {
'jest/no-export': 'error',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/no-if': 'error',
'jest/no-jasmine-globals': 'error',
'jest/no-standalone-expect': 'error',
'jest/no-test-prefixes': 'error',
Expand Down
3 changes: 1 addition & 2 deletions config-eslint/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module.exports = {
'error',
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow-as-parameter' },
],
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
Copy link
Collaborator Author

@williaster williaster Dec 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enabled auto-fixing import { FooType } from './foo' to import type { FooType } from './foo' which TS now cares about

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typescript should not require this afaik unless verbatimModuleSyntax is enabled 🤔

But it's a good practice anyway, so 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I was getting *.d.ts is not a module errors, but actually fixed that in tsconfig with "moduleResolution": "node16"

but agree this is best practice/we should do it anyway 👍

'@typescript-eslint/explicit-function-return-type': 'off', // Allow inferrence
'@typescript-eslint/func-call-spacing': ['error', 'never'],
'@typescript-eslint/member-delimiter-style': 'error',
Expand All @@ -95,9 +96,7 @@ module.exports = {
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-parameter-properties': 'error',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-throw-literal': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unsafe-call': 'warn',
'@typescript-eslint/no-unsafe-member-access': 'warn',
Expand Down
3 changes: 3 additions & 0 deletions config-jest/setup/shims.js
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
require('airbnb-js-shims/target/es2019');

// Global mock for getComputedTextLength
SVGElement.prototype.getComputedTextLength = () => 100;
8 changes: 5 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @type {import('jest').Config} */
module.exports = {
bail: false,
collectCoverageFrom: [
Expand Down Expand Up @@ -38,9 +39,10 @@ module.exports = {
roots: ['<rootDir>/packages'],
setupFiles: ['<rootDir>/config-jest/setup/shims.js', '<rootDir>/config-jest/setup/console.js'],
testEnvironment: 'jsdom',
testURL: 'http://localhost',
timers: 'fake',
verbose: false,
testEnvironmentOptions: {
url: 'http://localhost',
},
verbose: true,
testPathIgnorePatterns: ['<rootDir>/packages/visx-demo'],
transformIgnorePatterns: [
'node_modules/(?!(d3-(array|color|format|geo|interpolate|scale|time|time-format)|delaunator|internmap|robust-predicates)/)',
Expand Down
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"charts"
],
"engines": {
"node": ">=16.13.0",
"node": ">=18.18.0",
"yarn": ">=1.17.0"
},
"contributors": [
Expand Down Expand Up @@ -45,6 +45,7 @@
"jest": "NODE_ENV=test jest --coverage --verbose",
"lint": "eslint packages/ --quiet",
"lint:fix": "yarn run lint --fix",
"postinstall": "yarn run ts ./scripts/postInstall.ts",
"prepare-release": "git checkout master && git pull --rebase origin master && lerna updated",
"release": "yarn run prepare-release && lerna publish --exact",
"setup": "yarn run build",
Expand All @@ -71,20 +72,21 @@
"@testing-library/jest-dom": "^6.6.0",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^24.0.18",
"@types/jsdom": "^12.2.4",
"@types/jest": "^29.5.14",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.10.2",
"@types/node-fetch": "1.6.9",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"airbnb-js-shims": "^2.2.1",
"babel-plugin-typescript-to-proptypes": "^2.0.0",
"chalk": "4.1.0",
"coveralls": "^3.0.6",
"eslint": "^8.30.0",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.7",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
Expand All @@ -95,7 +97,8 @@
"filesize": "6.1.0",
"fs-jetpack": "^1.3.0",
"husky": "^3.0.0",
"jest": "^25.5.4",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-mock-console": "^1.0.1",
"lerna": "^7.0.2",
"marked": "^0.7.0",
Expand All @@ -106,8 +109,8 @@
"react-dom": "^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0",
"regenerator-runtime": "^0.10.5",
"timezone-mock": "^1.1.0",
"ts-node": "9.1.1",
"typescript": "^3.8.3"
"ts-node": "^10.9.1",
"typescript": "^5.7.0"
},
"packageManager": "[email protected]",
"workspaces": {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/Annotation.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useMemo } from 'react';
import AnnotationContext from '../context/AnnotationContext';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';

export type AnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {
/** Annotation children (Subject, Label, Connector) */
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/CircleSubject.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext } from 'react';
import cx from 'classnames';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';
import AnnotationContext from '../context/AnnotationContext';

export type CircleSubjectProps = Pick<AnnotationContextType, 'x' | 'y'> & {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/Connector.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext } from 'react';
import cx from 'classnames';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';
import AnnotationContext from '../context/AnnotationContext';

// @TODO
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* eslint-disable react/jsx-handler-names */
import React, { useCallback, useRef } from 'react';
import useDrag, { UseDrag, HandlerArgs as DragHandlerArgs } from '@visx/drag/lib/useDrag';
import { AnnotationContextType } from '../types';
import type { UseDrag, HandlerArgs as DragHandlerArgs } from '@visx/drag/lib/useDrag';
import useDrag from '@visx/drag/lib/useDrag';
import type { AnnotationContextType } from '../types';
import Annotation from './Annotation';

export type EditableAnnotationProps = Pick<AnnotationContextType, 'x' | 'y' | 'dx' | 'dy'> & {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/components/HtmlLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import useMeasure from 'react-use-measure';
import { Group } from '@visx/group';
import AnnotationContext from '../context/AnnotationContext';
import AnchorLine from './LabelAnchorLine';
import { LabelProps } from './Label';
import type { LabelProps } from './Label';

const wrapperStyle = { display: 'inline-block' };

Expand Down
6 changes: 4 additions & 2 deletions packages/visx-annotation/src/components/Label.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React, { useContext, useMemo } from 'react';
import cx from 'classnames';
import { Group } from '@visx/group';
import { Text, TextProps, useText } from '@visx/text';
import useMeasure, { Options as UseMeasureOptions } from 'react-use-measure';
import type { TextProps } from '@visx/text';
import { Text, useText } from '@visx/text';
import type { Options as UseMeasureOptions } from 'react-use-measure';
import useMeasure from 'react-use-measure';
import AnnotationContext from '../context/AnnotationContext';
import AnchorLine from './LabelAnchorLine';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { TextProps } from '@visx/text';
import type { TextProps } from '@visx/text';

interface AnchorLineProps {
anchorLineOrientation: 'horizontal' | 'vertical';
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-annotation/src/context/AnnotationContext.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createContext } from 'react';
import { AnnotationContextType } from '../types';
import type { AnnotationContextType } from '../types';

const AnnotationContext = createContext<AnnotationContextType>({});

Expand Down
14 changes: 7 additions & 7 deletions packages/visx-annotation/test/Label.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ describe('<Label />', () => {

it('should render title text', () => {
const { getByText } = renderLabel({
title: 'title test',
title: 'title',
resizeObserverPolyfill: ResizeObserver,
});
expect(getByText('title test')).toBeInTheDocument();
expect(getByText('title')).toBeInTheDocument();
});

it('should render subtitle text', () => {
const { getByText } = renderLabel({
title: 'title test',
subtitle: 'subtitle test',
title: 'title',
subtitle: 'subtitle',
resizeObserverPolyfill: ResizeObserver,
});
expect(getByText('subtitle test')).toBeInTheDocument();
expect(getByText('subtitle')).toBeInTheDocument();
});

it('should render background', () => {
const { container } = renderLabel({
title: 'title test',
title: 'title',
showBackground: true,
resizeObserverPolyfill: ResizeObserver,
});
Expand All @@ -46,7 +46,7 @@ describe('<Label />', () => {

it('should render anchor line', () => {
const { container } = renderLabel({
title: 'title test',
title: 'title',
showAnchorLine: true,
resizeObserverPolyfill: ResizeObserver,
});
Expand Down
5 changes: 3 additions & 2 deletions packages/visx-axis/src/axis/Axis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import React from 'react';
import cx from 'classnames';
import { Group } from '@visx/group';
import { getTicks, coerceNumber } from '@visx/scale';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';
import AxisRenderer from './AxisRenderer';
import getTickPosition from '../utils/getTickPosition';
import getTickFormatter from '../utils/getTickFormatter';
import createPoint from '../utils/createPoint';
import Orientation, { OrientationType } from '../constants/orientation';
import type { OrientationType } from '../constants/orientation';
import Orientation from '../constants/orientation';
Comment on lines +10 to +11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, instead of splitting those lines up you can also do this:

Suggested change
import type { OrientationType } from '../constants/orientation';
import Orientation from '../constants/orientation';
import Orientation, { type OrientationType } from '../constants/orientation';

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had just used the eslint autofix here. this doesn't seem to be configurable https://typescript-eslint.io/rules/consistent-type-imports/. no strong opinion from me.

import getAxisRangePaddingConfig from '../utils/getAxisRangePaddingConfig';

export type AxisProps<Scale extends AxisScale> = SharedAxisProps<Scale> & {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisBottom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export const bottomTickLabelProps = {
dy: '0.25em',
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisLeft.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export const leftTickLabelProps = {
dx: '-0.25em',
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-axis/src/axis/AxisRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import cx from 'classnames';
import { Line } from '@visx/shape';
import { Text } from '@visx/text';

import { TextProps } from '@visx/text/lib/Text';
import type { TextProps } from '@visx/text/lib/Text';
import getLabelTransform from '../utils/getLabelTransform';
import Orientation from '../constants/orientation';
import { AxisRendererProps, AxisScale } from '../types';
import type { AxisRendererProps, AxisScale } from '../types';
import Ticks from './Ticks';

const defaultTextProps: Partial<TextProps> = {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisRight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export type AxisRightProps<Scale extends AxisScale> = SharedAxisProps<Scale>;

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/AxisTop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import cx from 'classnames';
import Axis from './Axis';
import Orientation from '../constants/orientation';
import { SharedAxisProps, AxisScale } from '../types';
import type { SharedAxisProps, AxisScale } from '../types';

export type AxisTopProps<Scale extends AxisScale> = SharedAxisProps<Scale>;

Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/axis/Ticks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Group } from '@visx/group';
import { Text } from '@visx/text';

import Orientation from '../constants/orientation';
import { TicksRendererProps, AxisScale } from '../types';
import type { TicksRendererProps, AxisScale } from '../types';

export default function Ticks<Scale extends AxisScale>({
hideTicks,
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/constants/orientation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ValueOf } from '@visx/scale';
import type { ValueOf } from '@visx/scale';

const Orientation = {
top: 'top',
Expand Down
8 changes: 4 additions & 4 deletions packages/visx-axis/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { D3Scale, NumberLike, ScaleInput, ValueOf } from '@visx/scale';
import { TextProps } from '@visx/text/lib/Text';
import { ReactNode, Ref, SVGProps } from 'react';
import Orientation from './constants/orientation';
import type { D3Scale, NumberLike, ScaleInput, ValueOf } from '@visx/scale';
import type { TextProps } from '@visx/text/lib/Text';
import type { ReactNode, Ref, SVGProps } from 'react';
import type Orientation from './constants/orientation';

// In order to plot values on an axis, output of the scale must be number.
// Some scales return undefined.
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-axis/src/utils/getAxisRangePaddingConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SharedAxisProps } from '../types';
import type { SharedAxisProps } from '../types';

export const defaultAxisRangePadding = 0;

Expand Down
7 changes: 4 additions & 3 deletions packages/visx-axis/src/utils/getLabelTransform.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { TextProps } from '@visx/text/lib/Text';
import Orientation, { OrientationType } from '../constants/orientation';
import { AxisScaleOutput } from '../types';
import type { TextProps } from '@visx/text/lib/Text';
import type { OrientationType } from '../constants/orientation';
import Orientation from '../constants/orientation';
import type { AxisScaleOutput } from '../types';

export interface TransformArgs {
labelOffset: number;
Expand Down
5 changes: 3 additions & 2 deletions packages/visx-axis/src/utils/getTickFormatter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ScaleInput, toString } from '@visx/scale';
import { TickFormatter, AxisScale } from '../types';
import type { ScaleInput } from '@visx/scale';
import { toString } from '@visx/scale';
import type { TickFormatter, AxisScale } from '../types';

/**
* Returns a tick position for the given tick value
Expand Down
4 changes: 2 additions & 2 deletions packages/visx-axis/src/utils/getTickPosition.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ScaleInput } from '@visx/scale';
import { AxisScale, AxisScaleOutput } from '../types';
import type { ScaleInput } from '@visx/scale';
import type { AxisScale, AxisScaleOutput } from '../types';

/**
* Create a function that returns a tick position for the given tick value
Expand Down
3 changes: 2 additions & 1 deletion packages/visx-bounds/src/enhancers/withBoundingRects.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint react/no-did-mount-set-state: 0, react/no-find-dom-node: 0 */
import React, { ComponentClass } from 'react';
import type { ComponentClass } from 'react';
import React from 'react';
import ReactDOM from 'react-dom';

const emptyRect = {
Expand Down
2 changes: 1 addition & 1 deletion packages/visx-bounds/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WithBoundingRectsProps as WithBoundingRectsPropsType } from './enhancers/withBoundingRects';
import type { WithBoundingRectsProps as WithBoundingRectsPropsType } from './enhancers/withBoundingRects';

export { default as withBoundingRects } from './enhancers/withBoundingRects';

Expand Down
3 changes: 2 additions & 1 deletion packages/visx-bounds/test/withBoundingRects.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* eslint-disable jsx-a11y/no-static-element-interactions */
/* eslint-disable jsx-a11y/click-events-have-key-events */
import React, { ReactNode } from 'react';
import type { ReactNode } from 'react';
import React from 'react';
import { render, waitFor } from '@testing-library/react';
import fireEvent from '@testing-library/user-event';
import { withBoundingRects } from '../src';
Expand Down
Loading
Loading