Skip to content

Commit

Permalink
test: use no memo
Browse files Browse the repository at this point in the history
- see #6920

---

Используем  `use no memo` для отключения компилятора в тестах
  • Loading branch information
SevereCloud committed Jun 25, 2024
1 parent 4ee1f30 commit 973b59b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use no memo';

import * as React from 'react';
import { render } from '@testing-library/react';
import { DEFAULT_TOKENS_CLASS_NAMES } from '../../lib/tokens';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use no memo';

import { render } from '@testing-library/react';
import { baselineComponent } from '../../testing/utils';
import { ConfigProvider } from '../ConfigProvider/ConfigProvider';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use no memo';

import { render } from '@testing-library/react';
import { ConfigProvider } from '../ConfigProvider/ConfigProvider';
import {
Expand Down
2 changes: 2 additions & 0 deletions packages/vkui/src/components/Popover/Popover.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use no memo';

import * as React from 'react';
import { fireEvent, render } from '@testing-library/react';
import { baselineComponent, waitForFloatingPosition } from '../../testing/utils';
Expand Down
2 changes: 2 additions & 0 deletions packages/vkui/src/hooks/useExternRef.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use no memo';

import * as React from 'react';
import { render } from '@testing-library/react';
import { noop } from '@vkontakte/vkjs';
Expand Down
2 changes: 2 additions & 0 deletions packages/vkui/src/hooks/useFocusWithin.test.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use no memo';

import * as React from 'react';
import { act } from 'react';
import { render, screen } from '@testing-library/react';
Expand Down

0 comments on commit 973b59b

Please sign in to comment.