Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(circus): added each to failing tests #13142

Merged
merged 13 commits into from Aug 17, 2022
94 changes: 62 additions & 32 deletions e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap
Expand Up @@ -34,6 +34,21 @@ FAIL __tests__/worksWithConcurrentMode.test.js

at Object.toBe (__tests__/worksWithConcurrentMode.test.js:10:16)

● block with concurrent › encountered a declaration exception

TypeError: test.concurrent.failing.each is not a function
SimenB marked this conversation as resolved.
Show resolved Hide resolved

15 | });
16 |
> 17 | test.concurrent.failing.each([
| ^
18 | {a: 1, b: 1, expected: 2},
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},

at Suite.each (__tests__/worksWithConcurrentMode.test.js:17:27)
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)

FAIL __tests__/worksWithConcurrentOnlyMode.test.js
● block with concurrent › skipped failing test

Expand All @@ -52,6 +67,21 @@ FAIL __tests__/worksWithConcurrentOnlyMode.test.js

at Object.toBe (__tests__/worksWithConcurrentOnlyMode.test.js:10:16)

● block with concurrent › encountered a declaration exception

TypeError: test.concurrent.only.failing.each is not a function

15 | });
16 |
> 17 | test.concurrent.only.failing.each([
| ^
18 | {a: 1, b: 1, expected: 2},
19 | {a: 1, b: 2, expected: 3},
20 | {a: 2, b: 1, expected: 3},

at Suite.each (__tests__/worksWithConcurrentOnlyMode.test.js:17:32)
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)

FAIL __tests__/worksWithOnlyMode.test.js
● block with only, should pass › encountered a declaration exception

Expand All @@ -72,46 +102,46 @@ FAIL __tests__/worksWithOnlyMode.test.js

Jest: \`failing\` tests are only supported in \`jest-circus\`.

21 |
22 | describe('block with only, should fail', () => {
> 23 | it.only.failing('failing passes = fails, should fail', () => {
29 |
30 | describe('block with only, should fail', () => {
> 31 | it.only.failing('failing passes = fails, should fail', () => {
| ^
24 | expect(10).toBe(10);
25 | });
26 |
32 | expect(10).toBe(10);
33 | });
34 |

at Suite.failing (__tests__/worksWithOnlyMode.test.js:23:11)
at Object.describe (__tests__/worksWithOnlyMode.test.js:22:1)
at Suite.failing (__tests__/worksWithOnlyMode.test.js:31:11)
at Object.describe (__tests__/worksWithOnlyMode.test.js:30:1)

● block with only in other it, should skip › encountered a declaration exception

Jest: \`failing\` tests are only supported in \`jest-circus\`.

35 |
36 | describe('block with only in other it, should skip', () => {
> 37 | it.failing('failing passes = fails, should fail but skipped', () => {
43 |
44 | describe('block with only in other it, should skip', () => {
> 45 | it.failing('failing passes = fails, should fail but skipped', () => {
| ^
38 | expect(10).toBe(10);
39 | });
40 |
46 | expect(10).toBe(10);
47 | });
48 |

at Suite.failing (__tests__/worksWithOnlyMode.test.js:37:6)
at Object.describe (__tests__/worksWithOnlyMode.test.js:36:1)
at Suite.failing (__tests__/worksWithOnlyMode.test.js:45:6)
at Object.describe (__tests__/worksWithOnlyMode.test.js:44:1)

● block with only with different syntax, should fail › encountered a declaration exception

Jest: \`failing\` tests are only supported in \`jest-circus\`.

49 |
50 | describe('block with only with different syntax, should fail', () => {
> 51 | fit.failing('failing passes = fails, should fail 1', () => {
57 |
58 | describe('block with only with different syntax, should fail', () => {
> 59 | fit.failing('failing passes = fails, should fail 1', () => {
| ^
52 | expect(10).toBe(10);
53 | });
54 |
60 | expect(10).toBe(10);
61 | });
62 |

at Suite.failing (__tests__/worksWithOnlyMode.test.js:51:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:50:1)
at Suite.failing (__tests__/worksWithOnlyMode.test.js:59:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:58:1)

FAIL __tests__/worksWithSkipMode.test.js
● block with only, should pass › encountered a declaration exception
Expand All @@ -133,14 +163,14 @@ FAIL __tests__/worksWithSkipMode.test.js

Jest: \`failing\` tests are only supported in \`jest-circus\`.

25 |
26 | describe('block with only, should fail', () => {
> 27 | it.skip.failing('failing passes = fails, should fail', () => {
33 |
34 | describe('block with only, should fail', () => {
> 35 | it.skip.failing('failing passes = fails, should fail', () => {
| ^
28 | expect(10).toBe(10);
29 | });
30 |
36 | expect(10).toBe(10);
37 | });
38 |

at Suite.failing (__tests__/worksWithSkipMode.test.js:27:11)
at Object.describe (__tests__/worksWithSkipMode.test.js:26:1)"
at Suite.failing (__tests__/worksWithSkipMode.test.js:35:11)
at Object.describe (__tests__/worksWithSkipMode.test.js:34:1)"
`;