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

Fix act warnings #5811

Merged
merged 1 commit into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webview/src/plots/components/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { configureStore } from '@reduxjs/toolkit'
import React from 'react'
import { Provider } from 'react-redux'
import {
act,
createEvent,
fireEvent,
render,
Expand Down Expand Up @@ -31,7 +32,6 @@ import {
MessageFromWebviewType,
MessageToWebviewType
} from 'dvc/src/webview/contract'
import { act } from 'react-dom/test-utils'
import { App } from './App'
import { NewSectionBlock } from './templatePlots/TemplatePlots'
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { configureStore } from '@reduxjs/toolkit'
import '@testing-library/jest-dom'
import {
act,
fireEvent,
render,
RenderResult,
Expand All @@ -13,7 +14,6 @@ import comparisonTableFixture from 'dvc/src/test/fixtures/plotsDiff/comparison'
import plotsRevisionsFixture from 'dvc/src/test/fixtures/plotsDiff/revisions'
import React from 'react'
import { Revision } from 'dvc/src/plots/webview/contract'
import { act } from 'react-dom/test-utils'
import { ComparisonTable } from './ComparisonTable'
import {
comparisonTableInitialState,
Expand Down
2 changes: 1 addition & 1 deletion webview/src/test/dragDrop.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act } from 'react-dom/test-utils'
import { act } from '@testing-library/react'
import { DragEnterDirection } from '../shared/components/dragDrop/util'
import { idToNode } from '../util/helpers'

Expand Down
Loading