Skip to content

Commit

Permalink
Tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Jan 19, 2025
1 parent 521dce1 commit bbd640b
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 18 deletions.
204 changes: 197 additions & 7 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/react-virtuoso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@
"typescript": "~5.7.2",
"vite": "~6.0.7",
"vite-plugin-dts": "~4.4.0",
"vitest": "3.0.0-beta.3"
"vitest": "3.0.0-beta.3",
"jsdom": "~26.0.0",
"@testing-library/react": "~16.2.0",
"@types/jsdom": "~21.1.7"
},
"engines": {
"node": ">=10"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-virtuoso/test/Grid.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ReactDOM from 'react-dom/client'
import { VirtuosoGrid } from '../src/VirtuosoGrid'

import { describe, it, beforeEach, afterEach, vi, expect } from 'vitest'
import { act } from 'react-dom/test-utils'
import { act } from 'react'

vi.mock('../src/hooks/useSize')
vi.mock('../src/hooks/useScrollTop')
Expand Down
2 changes: 1 addition & 1 deletion packages/react-virtuoso/test/Virtuoso.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
import * as React from 'react'
import ReactDOM from 'react-dom/client'
import { act } from 'react-dom/test-utils'
import { act } from 'react'
import { Virtuoso } from '../src/Virtuoso'

import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'
Expand Down
2 changes: 1 addition & 1 deletion packages/react-virtuoso/test/react-urx/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as React from 'react'
import { createRef, FC } from 'react'
import { createRoot, Root } from 'react-dom/client'

import { act } from 'react-dom/test-utils'
import { act } from 'react'
import {
combineLatest,
connect,
Expand Down
Loading

0 comments on commit bbd640b

Please sign in to comment.