Skip to content

Commit

Permalink
Merge branch 'main' into am-draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
amanmahajan7 authored Aug 16, 2023
2 parents 45e57fc + 1c2ba82 commit 79cd737
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@microsoft/api-extractor": "^7.23.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.1.1",
"@types/lodash-es": "^4.17.7",
Expand Down
1 change: 0 additions & 1 deletion test/column/colSpan.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import userEvent from '@testing-library/user-event';
import { vi } from 'vitest';

import type { Column } from '../../src';
import { getCellsAtRowIndex, getHeaderCells, setup, validateCellPosition } from '../utils';
Expand Down
1 change: 0 additions & 1 deletion test/column/renderCell.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useState } from 'react';
import { screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { expect, test, vi } from 'vitest';

import DataGrid from '../../src';
import type { Column } from '../../src';
Expand Down
1 change: 0 additions & 1 deletion test/column/renderEditCell.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { useMemo, useState } from 'react';
import { createPortal } from 'react-dom';
import { act, screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { vi } from 'vitest';

import DataGrid from '../../src';
import type { Column, DataGridProps } from '../../src';
Expand Down
1 change: 0 additions & 1 deletion test/column/resizable.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { fireEvent } from '@testing-library/react';
import { expect, test } from 'vitest';

import type { Column } from '../../src';
import { getGrid, getHeaderCells, setup } from '../utils';
Expand Down
1 change: 0 additions & 1 deletion test/copyPaste.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState } from 'react';
import userEvent from '@testing-library/user-event';
import { vi } from 'vitest';

import DataGrid from '../src';
import type { Column, PasteEvent } from '../src';
Expand Down
1 change: 0 additions & 1 deletion test/rowHeight.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { vi } from 'vitest';

import type { Column, DataGridProps } from '../src';
import { getRows, setup } from './utils';
Expand Down
1 change: 0 additions & 1 deletion test/scrollToCell.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useRef } from 'react';
import { screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { vi } from 'vitest';

import type { Column, DataGridHandle } from '../src';
import DataGrid from '../src';
Expand Down
3 changes: 2 additions & 1 deletion test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { act } from 'react-dom/test-utils';
// as @testing-library/jest-dom may polyfill some DOM APIs like `window.CSS`
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (globalThis.window !== undefined) {
await import('@testing-library/jest-dom');
// @ts-expect-error
await import('@testing-library/jest-dom/vitest');
}

if (typeof window !== 'undefined') {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": true
"noEmit": true,
"types": ["vitest/globals"]
},
"include": ["rollup.config.js", "vite.config.ts", "src/**/*", "test/**/*", "website/**/*"]
}

0 comments on commit 79cd737

Please sign in to comment.