dimanche 11 février 2018

Global import for testing react app

If I wanted to do this in all my test.js files:

import { shallow } from 'enzyme';
import MockAdapter from 'axios-mock-adapter';

Is there a way to globally import it so that every 'tests.js' file will automatically have that imported?

Thanks in advance!!!

Aucun commentaire:

Enregistrer un commentaire