Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Import act from react instead of deprecated version from testing-library
  • Loading branch information
andreiborza committed Feb 18, 2026
commit d56b0c864c5dbf94ac095a1275a60257a9d5ce6f
3 changes: 2 additions & 1 deletion packages/react/test/reactrouter-cross-usage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import {
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setCurrentClient,
} from '@sentry/core';
import { act, render, waitFor } from '@testing-library/react';
import { render, waitFor } from '@testing-library/react';
import * as React from 'react';
import { act } from 'react';
import {
createMemoryRouter,
createRoutesFromChildren,
Expand Down
3 changes: 2 additions & 1 deletion packages/react/test/reactrouterv3.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import {
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setCurrentClient,
} from '@sentry/core';
import { act, render } from '@testing-library/react';
import { render } from '@testing-library/react';
import * as React from 'react';
import { act } from 'react';
import { createMemoryHistory, createRoutes, IndexRoute, match, Route, Router } from 'react-router-3';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { reactRouterV3BrowserTracingIntegration } from '../src/reactrouterv3';
Expand Down
3 changes: 2 additions & 1 deletion packages/react/test/reactrouterv4.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import {
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setCurrentClient,
} from '@sentry/core';
import { act, render } from '@testing-library/react';
import { render } from '@testing-library/react';
import { createMemoryHistory } from 'history-4';
import * as React from 'react';
import { act } from 'react';
import { matchPath, Route, Router, Switch } from 'react-router-4';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { BrowserClient, reactRouterV4BrowserTracingIntegration, withSentryRouting } from '../src';
Expand Down
3 changes: 2 additions & 1 deletion packages/react/test/reactrouterv5.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import {
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
setCurrentClient,
} from '@sentry/core';
import { act, render } from '@testing-library/react';
import { render } from '@testing-library/react';
import { createMemoryHistory } from 'history-4';
import * as React from 'react';
import { act } from 'react';
import { matchPath, Route, Router, Switch } from 'react-router-5';
import { beforeEach, describe, expect, it, vi } from 'vitest';
import { BrowserClient, reactRouterV5BrowserTracingIntegration, withSentryRouting } from '../src';
Expand Down
Loading