Skip to content

Commit

Permalink
fix act warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Nov 3, 2024
1 parent 26b7556 commit 3f95258
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 3f95258

Please sign in to comment.