Skip to content

Commit

Permalink
Address e2e tests PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeliog committed Jul 2, 2019
1 parent df8a22e commit 2d997e6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions e2e/__tests__/toMatchInlineSnapshotWithRetries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test('works with a single snapshot', () => {
}
});

test('works a different assertion is failing', () => {
test('works when a different assertion is failing', () => {
const filename = 'basic-support.test.js';
const template = makeTemplate(`
jest.retryTimes($1);
Expand All @@ -90,14 +90,14 @@ test('works when multiple tests have snapshots but only one of them failed multi
const filename = 'basic-support.test.js';
const template = makeTemplate(`
test('passing snapshots', () => expect(1).toMatchInlineSnapshot(\`1\`));
describe('with retries', () => {
let index = 0;
afterEach(() => {
index += 1;
});
jest.retryTimes($2);
test('snapshots', () => expect($1).toMatchInlineSnapshot(\`3\`));
describe('with retries', () => {
let index = 0;
afterEach(() => {
index += 1;
});
jest.retryTimes($2);
test('snapshots', () => expect($1).toMatchInlineSnapshot(\`3\`));
});
`);

{
Expand Down
14 changes: 7 additions & 7 deletions e2e/__tests__/toMatchSnapshotWithRetries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ test('works when multiple tests have snapshots but only one of them failed multi
const filename = 'basic-support.test.js';
const template = makeTemplate(`
test('passing snapshots', () => expect('foo').toMatchSnapshot());
describe('with retries', () => {
let index = 0;
afterEach(() => {
index += 1;
});
jest.retryTimes($2);
test('snapshots', () => expect($1).toMatchSnapshot());
describe('with retries', () => {
let index = 0;
afterEach(() => {
index += 1;
});
jest.retryTimes($2);
test('snapshots', () => expect($1).toMatchSnapshot());
});
`);

{
Expand Down

0 comments on commit 2d997e6

Please sign in to comment.