Updating import paths in tests
This commit is contained in:
parent
91ee254477
commit
3931cee8af
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import App from './index';
|
||||
import App from 'components/App';
|
||||
|
||||
test('Message rendering', () => {
|
||||
const component = shallow(
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { Footer } from './index';
|
||||
import { Footer } from 'components/Footer';
|
||||
|
||||
test('Footer rendering', () => {
|
||||
const component = shallow(
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { Header } from './index';
|
||||
import { Header } from 'components/Header';
|
||||
|
||||
const env = { ...process.env };
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { shallow, render } from 'enzyme';
|
||||
|
||||
import Message from './index';
|
||||
import Message from 'components/Message';
|
||||
|
||||
test('Message rendering', () => {
|
||||
const component = shallow(
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import RavenBoundary from './index';
|
||||
import RavenBoundary from 'components/RavenBoundary';
|
||||
|
||||
const testError = { error: 'test error' };
|
||||
const testDetails = { details: 'test details' };
|
||||
|
@ -1,10 +1,10 @@
|
||||
import React from 'react';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
jest.mock('../../sentry');
|
||||
jest.mock('sentry');
|
||||
|
||||
import { RavenError } from './index';
|
||||
import { Raven } from '../../sentry';
|
||||
import { RavenError } from 'components/RavenError';
|
||||
import { Raven } from 'sentry';
|
||||
|
||||
const testError = { error: 'test error' };
|
||||
const testDetails = { details: 'test details' };
|
||||
|
Loading…
Reference in New Issue
Block a user