Disabling yet-to-be-updated tests

This commit is contained in:
Jeff Avallone 2019-03-24 14:58:12 -04:00
parent c8068762b5
commit 26e0776f1d
4 changed files with 21 additions and 21 deletions

View File

@ -1,5 +1,5 @@
import React from 'react';
import { shallow } from 'enzyme';
import { render } from 'react-testing-library';
import { mockT } from 'i18n';
import { App } from 'components/App';
@ -17,14 +17,14 @@ const syntaxList = [
const commonProps = { syntaxList, t: mockT };
describe('App', () => {
test('rendering', () => {
test.skip('rendering', () => {
const component = shallow(
<App expr="" syntax="js" { ...commonProps } />
);
expect(component).toMatchSnapshot();
});
test('rendering an expression', async () => {
test.skip('rendering an expression', async () => {
const component = shallow(
<App expr="" syntax="js" { ...commonProps } />
);
@ -42,7 +42,7 @@ describe('App', () => {
expect(component).toMatchSnapshot();
});
test('rendering with an invalid syntax', async () => {
test.skip('rendering with an invalid syntax', async () => {
jest.spyOn(console, 'error').mockImplementation(() => {});
const component = shallow(
@ -62,7 +62,7 @@ describe('App', () => {
expect(component).toMatchSnapshot();
});
test('removing rendered expression', async () => {
test.skip('removing rendered expression', async () => {
const component = shallow(
<App expr="test expression" syntax="js" { ...commonProps } />
);
@ -79,7 +79,7 @@ describe('App', () => {
expect(component).toMatchSnapshot();
});
test('rendering image details', async () => {
test.skip('rendering image details', async () => {
const component = shallow(
<App expr="test expression" syntax="js" { ...commonProps } />
);
@ -96,7 +96,7 @@ describe('App', () => {
expect(component).toMatchSnapshot();
});
test('retrying expression rendering', () => {
test.skip('retrying expression rendering', () => {
jest.spyOn(console, 'error').mockImplementation(() => {});
const component = shallow(
@ -114,7 +114,7 @@ describe('App', () => {
expect(instance.handleRender).toHaveBeenCalled();
});
test('submitting an expression to render', () => {
test.skip('submitting an expression to render', () => {
const component = shallow(
<App expr="" syntax="js" { ...commonProps } />
);

View File

@ -1,5 +1,5 @@
import React from 'react';
import { shallow } from 'enzyme';
import { render } from 'react-testing-library';
import { mockT } from 'i18n';
import { Form } from 'components/Form';
@ -11,7 +11,7 @@ const syntaxList = [
const commonProps = { syntaxList, t: mockT };
describe('Form', () => {
test('rendering', () => {
test.skip('rendering', () => {
const component = shallow(
<Form onSubmit={ jest.fn() } { ...commonProps }>
Actions
@ -21,7 +21,7 @@ describe('Form', () => {
});
describe('submitting expression', () => {
test('submitting form', () => {
test.skip('submitting form', () => {
const onSubmit = jest.fn();
const component = shallow(
<Form onSubmit={ onSubmit } { ...commonProps } />
@ -52,7 +52,7 @@ describe('Form', () => {
});
});
test('submitting form with Shift+Enter', () => {
test.skip('submitting form with Shift+Enter', () => {
const component = shallow(
<Form onSubmit={ jest.fn() } { ...commonProps } />
);
@ -68,7 +68,7 @@ describe('Form', () => {
expect(form.handleSubmit).toHaveBeenCalled();
});
test('not submitting with just Enter', () => {
test.skip('not submitting with just Enter', () => {
const component = shallow(
<Form onSubmit={ jest.fn() } { ...commonProps } />
);

View File

@ -1,7 +1,7 @@
jest.mock('./links');
import React from 'react';
import { shallow } from 'enzyme';
import { render } from 'react-testing-library';
import { mockT } from 'i18n';
import { FormActions } from 'components/FormActions';
@ -21,21 +21,21 @@ createSvgLink.mockResolvedValue({
});
describe('FormActions', () => {
test('rendering', () => {
test.skip('rendering', () => {
const component = shallow(
<FormActions t={ mockT } />
);
expect(component).toMatchSnapshot();
});
test('rendering with a permalink', () => {
test.skip('rendering with a permalink', () => {
const component = shallow(
<FormActions permalinkUrl="http://example.com" t={ mockT } />
);
expect(component).toMatchSnapshot();
});
test('rendering download links', async () => {
test.skip('rendering download links', async () => {
const imageDetails = {
svg: 'test image',
width: 10,
@ -52,7 +52,7 @@ describe('FormActions', () => {
expect(component).toMatchSnapshot();
});
test('rendering download links with data after mounting', async () => {
test.skip('rendering download links with data after mounting', async () => {
const component = shallow(
<FormActions t={ mockT } />
);

View File

@ -1,10 +1,10 @@
import React from 'react';
import { shallow } from 'enzyme';
import { render } from 'react-testing-library';
import Render from 'components/Render';
const testType = (name, item) => {
test(name, () => {
test.skip(name, () => {
const data = { type: 'SVG', children: [item] };
const component = shallow(
<Render data={ data } onRender={ jest.fn() }/>
@ -14,7 +14,7 @@ const testType = (name, item) => {
};
describe('Render', () => {
test('debugging', () => {
test.skip('debugging', () => {
const data = {
type: 'SVG',
children: [