refactor(client): move jest-dom into setup file
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
/* global expect */
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import 'jest-dom/extend-expect';
|
||||
|
||||
import Footer from './';
|
||||
|
||||
|
@@ -4,8 +4,6 @@ import renderer from 'react-test-renderer';
|
||||
import { Provider } from 'react-redux';
|
||||
import { createStore } from '../../redux/createStore';
|
||||
|
||||
import 'jest-dom/extend-expect';
|
||||
|
||||
import Intro from './';
|
||||
|
||||
function rendererCreateWithRedux(ui) {
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global expect jest */
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { Provider } from 'react-redux';
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global jest, expect */
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import React from 'react';
|
||||
import { render, fireEvent } from '@testing-library/react';
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global jest, expect */
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import React from 'react';
|
||||
import { render, fireEvent } from '@testing-library/react';
|
||||
import { Provider } from 'react-redux';
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global expect */
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
|
@@ -1,5 +1,4 @@
|
||||
/* global jest, expect */
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
|
||||
import React from 'react';
|
||||
import { render, fireEvent } from '@testing-library/react';
|
||||
|
@@ -1,7 +1,6 @@
|
||||
/* global expect */
|
||||
import React from 'react';
|
||||
import renderer from 'react-test-renderer';
|
||||
import 'jest-dom/extend-expect';
|
||||
|
||||
import Link from './Link';
|
||||
|
||||
|
@@ -1,7 +1,6 @@
|
||||
/* global expect */
|
||||
import React from 'react';
|
||||
import { render, cleanup } from '@testing-library/react';
|
||||
import 'jest-dom/extend-expect';
|
||||
|
||||
import Loader from './Loader';
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global expect */
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global expect jest */
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global jest, expect */
|
||||
import React from 'react';
|
||||
import 'jest-dom/extend-expect';
|
||||
import ShallowRenderer from 'react-test-renderer/shallow';
|
||||
|
||||
import { SearchBar } from './SearchBar';
|
||||
|
@@ -1,6 +1,5 @@
|
||||
/* global expect */
|
||||
|
||||
import '@testing-library/jest-dom/extend-expect';
|
||||
import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
import { Provider } from 'react-redux';
|
||||
|
Reference in New Issue
Block a user