Skip to content

Commit

Permalink
chore: update eslint (#12900)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jun 2, 2022
1 parent 815a3a0 commit bd1fcbe
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 173 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.cjs
Expand Up @@ -248,7 +248,13 @@ module.exports = {
},
},
{
files: ['**/__typetests__/**', '**/*.md/**'],
files: [
'**/__typetests__/**',
'**/*.md/**',
'e2e/circus-concurrent/__tests__/concurrent-only-each.test.js',
'e2e/jasmine-async/__tests__/concurrent-only-each.test.js',
'e2e/test-failing/__tests__/worksWithOnlyMode.test.js',
],
rules: {
'jest/no-focused-tests': 'off',
'jest/no-identical-title': 'off',
Expand Down
46 changes: 23 additions & 23 deletions e2e/__tests__/__snapshots__/testFailing.test.ts.snap
Expand Up @@ -153,45 +153,45 @@ exports[`works with only mode 1`] = `
Expected: 101
Received: 10
41 | // eslint-disable-next-line jest/no-focused-tests
42 | it.only('failing test', () => {
> 43 | expect(10).toBe(101);
40 |
41 | it.only('failing test', () => {
> 42 | expect(10).toBe(101);
| ^
44 | });
45 |
46 | it('passing test but skipped', () => {
43 | });
44 |
45 | it('passing test but skipped', () => {
at Object.toBe (__tests__/worksWithOnlyMode.test.js:43:16)
at Object.toBe (__tests__/worksWithOnlyMode.test.js:42:16)
block with only with different syntax, should failfailing passes = fails, should fail 1
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
50 |
51 | describe('block with only with different syntax, should fail', () => {
> 52 | fit.failing('failing passes = fails, should fail 1', () => {
49 |
50 | describe('block with only with different syntax, should fail', () => {
> 51 | fit.failing('failing passes = fails, should fail 1', () => {
| ^
53 | expect(10).toBe(10);
54 | });
55 |
52 | expect(10).toBe(10);
53 | });
54 |
at failing (__tests__/worksWithOnlyMode.test.js:52:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:51:1)
at failing (__tests__/worksWithOnlyMode.test.js:51:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:50:1)
block with only with different syntax, should failfailing passes = fails, should fail 2
Failing test passed even though it was supposed to fail. Remove \`.failing\` to remove error.
54 | });
55 |
> 56 | test.only.failing('failing passes = fails, should fail 2', () => {
53 | });
54 |
> 55 | test.only.failing('failing passes = fails, should fail 2', () => {
| ^
57 | expect(10).toBe(10);
58 | });
59 |
56 | expect(10).toBe(10);
57 | });
58 |
at failing (__tests__/worksWithOnlyMode.test.js:56:13)
at Object.describe (__tests__/worksWithOnlyMode.test.js:51:1)"
at failing (__tests__/worksWithOnlyMode.test.js:55:13)
at Object.describe (__tests__/worksWithOnlyMode.test.js:50:1)"
`;
exports[`works with skip mode 1`] = `
Expand Down
16 changes: 8 additions & 8 deletions e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap
Expand Up @@ -102,16 +102,16 @@ FAIL __tests__/worksWithOnlyMode.test.js
Jest: \`failing\` tests are only supported in \`jest-circus\`.
50 |
51 | describe('block with only with different syntax, should fail', () => {
> 52 | fit.failing('failing passes = fails, should fail 1', () => {
49 |
50 | describe('block with only with different syntax, should fail', () => {
> 51 | fit.failing('failing passes = fails, should fail 1', () => {
| ^
53 | expect(10).toBe(10);
54 | });
55 |
52 | expect(10).toBe(10);
53 | });
54 |
at Suite.failing (__tests__/worksWithOnlyMode.test.js:52:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:51:1)
at Suite.failing (__tests__/worksWithOnlyMode.test.js:51:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:50:1)
FAIL __tests__/worksWithSkipMode.test.js
block with only, should passencountered a declaration exception
Expand Down
1 change: 0 additions & 1 deletion e2e/test-failing/__tests__/worksWithOnlyMode.test.js
Expand Up @@ -38,7 +38,6 @@ describe('block with only in other it, should skip', () => {
expect(10).toBe(10);
});

// eslint-disable-next-line jest/no-focused-tests
it.only('failing test', () => {
expect(10).toBe(101);
});
Expand Down

0 comments on commit bd1fcbe

Please sign in to comment.