Remove uuid mock from Jest

environments/review-renovate-u-9i9rxl/deployments/2151
Alex Gleason 2023-01-05 15:47:26 -06:00
rodzic 96e320e478
commit 5297d8dde3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
2 zmienionych plików z 0 dodań i 5 usunięć

Wyświetl plik

@ -3,8 +3,6 @@ import React from 'react';
import { render, screen } from '../../../../jest/test-helpers';
import FormGroup from '../form-group';
jest.mock('uuid', () => jest.requireActual('uuid'));
describe('<FormGroup />', () => {
it('connects the label and input', () => {
render(

Wyświetl plik

@ -15,9 +15,6 @@ jest.mock('soapbox/queries/client');
// https://dev.to/andyhaskell/testing-your-indexeddb-code-with-jest-2o17
require('fake-indexeddb/auto');
// Mock external dependencies
jest.mock('uuid', () => ({ v4: jest.fn(() => '1') }));
// Clear toasts after each test.
afterEach(() => {
toast.remove();