Remove uuid mock from Jest
This commit is contained in:
parent
96e320e478
commit
5297d8dde3
|
@ -3,8 +3,6 @@ import React from 'react';
|
||||||
import { render, screen } from '../../../../jest/test-helpers';
|
import { render, screen } from '../../../../jest/test-helpers';
|
||||||
import FormGroup from '../form-group';
|
import FormGroup from '../form-group';
|
||||||
|
|
||||||
jest.mock('uuid', () => jest.requireActual('uuid'));
|
|
||||||
|
|
||||||
describe('<FormGroup />', () => {
|
describe('<FormGroup />', () => {
|
||||||
it('connects the label and input', () => {
|
it('connects the label and input', () => {
|
||||||
render(
|
render(
|
||||||
|
|
|
@ -15,9 +15,6 @@ jest.mock('soapbox/queries/client');
|
||||||
// https://dev.to/andyhaskell/testing-your-indexeddb-code-with-jest-2o17
|
// https://dev.to/andyhaskell/testing-your-indexeddb-code-with-jest-2o17
|
||||||
require('fake-indexeddb/auto');
|
require('fake-indexeddb/auto');
|
||||||
|
|
||||||
// Mock external dependencies
|
|
||||||
jest.mock('uuid', () => ({ v4: jest.fn(() => '1') }));
|
|
||||||
|
|
||||||
// Clear toasts after each test.
|
// Clear toasts after each test.
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
toast.remove();
|
toast.remove();
|
||||||
|
|
Loading…
Reference in New Issue