Skip to content

Commit 786331b

Browse files
dependabot[bot]nstepien
authored andcommitted
Bump @testing-library/jest-dom from 5.17.0 to 6.0.0 (adazzle#3307)
* Bump @testing-library/jest-dom from 5.17.0 to 6.0.0 Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.17.0 to 6.0.0. - [Release notes](https://github.com/testing-library/jest-dom/releases) - [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md) - [Commits](testing-library/jest-dom@v5.17.0...v6.0.0) --- updated-dependencies: - dependency-name: "@testing-library/jest-dom" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fix import path * fix type issues --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nicolas Stepien <stepien.nicolas@gmail.com>
1 parent 5a853b1 commit 786331b

10 files changed

+5
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@microsoft/api-extractor": "^7.23.0",
6666
"@rollup/plugin-babel": "^6.0.3",
6767
"@rollup/plugin-node-resolve": "^15.1.0",
68-
"@testing-library/jest-dom": "^5.16.4",
68+
"@testing-library/jest-dom": "^6.0.0",
6969
"@testing-library/react": "^14.0.0",
7070
"@testing-library/user-event": "^14.1.1",
7171
"@types/lodash-es": "^4.17.7",

test/column/colSpan.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import userEvent from '@testing-library/user-event';
2-
import { vi } from 'vitest';
32

43
import type { Column } from '../../src';
54
import { getCellsAtRowIndex, getHeaderCells, setup, validateCellPosition } from '../utils';

test/column/renderCell.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState } from 'react';
22
import { screen } from '@testing-library/react';
33
import userEvent from '@testing-library/user-event';
4-
import { expect, test, vi } from 'vitest';
54

65
import DataGrid from '../../src';
76
import type { Column } from '../../src';

test/column/renderEditCell.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { useMemo, useState } from 'react';
22
import { createPortal } from 'react-dom';
33
import { act, screen, waitFor } from '@testing-library/react';
44
import userEvent from '@testing-library/user-event';
5-
import { vi } from 'vitest';
65

76
import DataGrid from '../../src';
87
import type { Column, DataGridProps } from '../../src';

test/column/resizable.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { fireEvent } from '@testing-library/react';
2-
import { expect, test } from 'vitest';
32

43
import type { Column } from '../../src';
54
import { getGrid, getHeaderCells, setup } from '../utils';

test/copyPaste.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { useState } from 'react';
22
import userEvent from '@testing-library/user-event';
3-
import { vi } from 'vitest';
43

54
import DataGrid from '../src';
65
import type { Column, PasteEvent } from '../src';

test/rowHeight.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { screen } from '@testing-library/react';
22
import userEvent from '@testing-library/user-event';
3-
import { vi } from 'vitest';
43

54
import type { Column, DataGridProps } from '../src';
65
import { getRows, setup } from './utils';

test/scrollToCell.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useRef } from 'react';
22
import { screen } from '@testing-library/react';
33
import userEvent from '@testing-library/user-event';
4-
import { vi } from 'vitest';
54

65
import type { Column, DataGridHandle } from '../src';
76
import DataGrid from '../src';

test/setup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { act } from 'react-dom/test-utils';
44
// as @testing-library/jest-dom may polyfill some DOM APIs like `window.CSS`
55
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
66
if (globalThis.window !== undefined) {
7-
await import('@testing-library/jest-dom');
7+
// @ts-expect-error
8+
await import('@testing-library/jest-dom/vitest');
89
}
910

1011
if (typeof window !== 'undefined') {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "./tsconfig.base.json",
33
"compilerOptions": {
4-
"noEmit": true
4+
"noEmit": true,
5+
"types": ["vitest/globals"]
56
},
67
"include": ["rollup.config.js", "vite.config.ts", "src/**/*", "test/**/*", "website/**/*"]
78
}

0 commit comments

Comments
 (0)