Files
jest/e2e/__tests__/__snapshots__/testFailingJasmine.test.ts.snap

179 lines
5.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`throws an error about unsupported modifier 1`] = `
"FAIL __tests__/statuses.test.js
● Test suite failed to run
Jest: \`failing\` tests are only supported in \`jest-circus\`.
20 | it.todo('todo');
21 |
> 22 | it.failing('failing fails = passes', () => {
| ^
23 | expect(10).toBe(101);
24 | });
25 |
at Object.failing (__tests__/statuses.test.js:22:4)
FAIL __tests__/worksWithConcurrentMode.test.js
● block with concurrent › test should fail
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
8 | describe('block with concurrent', () => {
9 | it('test should fail', () => {
> 10 | expect(10).toBe(101);
| ^
11 | });
12 |
13 | it.concurrent.failing('.failing() should fail', () => {
at Object.toBe (__tests__/worksWithConcurrentMode.test.js:10:16)
● block with concurrent › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
11 | });
12 |
> 13 | it.concurrent.failing('.failing() should fail', () => {
| ^
14 | expect(10).toBe(10);
15 | });
16 |
at concurrentFn.failing (../../packages/jest-jasmine2/build/index.js:<<REPLACED>>)
at Suite.failing (__tests__/worksWithConcurrentMode.test.js:13:17)
at Object.describe (__tests__/worksWithConcurrentMode.test.js:8:1)
FAIL __tests__/worksWithConcurrentOnlyMode.test.js
● block with concurrent › skipped failing test
expect(received).toBe(expected) // Object.is equality
Expected: 101
Received: 10
8 | describe('block with concurrent', () => {
9 | it('skipped failing test', () => {
> 10 | expect(10).toBe(101);
| ^
11 | });
12 |
13 | it.concurrent.only.failing('.only.failing() should fail', () => {
at Object.toBe (__tests__/worksWithConcurrentOnlyMode.test.js:10:16)
● block with concurrent › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
11 | });
12 |
> 13 | it.concurrent.only.failing('.only.failing() should fail', () => {
| ^
14 | expect(10).toBe(10);
15 | });
16 |
at concurrentFn.failing (../../packages/jest-jasmine2/build/index.js:<<REPLACED>>)
at Suite.failing (__tests__/worksWithConcurrentOnlyMode.test.js:13:22)
at Object.describe (__tests__/worksWithConcurrentOnlyMode.test.js:8:1)
FAIL __tests__/worksWithOnlyMode.test.js
● block with only, should pass › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
9 |
10 | describe('block with only, should pass', () => {
> 11 | it.only.failing('failing fails = passes, should pass', () => {
| ^
12 | expect(10).toBe(101);
13 | });
14 |
at Suite.failing (__tests__/worksWithOnlyMode.test.js:11:11)
at Object.describe (__tests__/worksWithOnlyMode.test.js:10:1)
● block with only, should fail › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
31 |
32 | describe('block with only, should fail', () => {
> 33 | it.only.failing('failing passes = fails, should fail', () => {
| ^
34 | expect(10).toBe(10);
35 | });
36 |
at Suite.failing (__tests__/worksWithOnlyMode.test.js:33:11)
at Object.describe (__tests__/worksWithOnlyMode.test.js:32:1)
● block with only in other it, should skip › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
45 |
46 | describe('block with only in other it, should skip', () => {
> 47 | it.failing('failing passes = fails, should fail but skipped', () => {
| ^
48 | expect(10).toBe(10);
49 | });
50 |
at Suite.failing (__tests__/worksWithOnlyMode.test.js:47:6)
at Object.describe (__tests__/worksWithOnlyMode.test.js:46:1)
● block with only with different syntax, should fail › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
59 |
60 | describe('block with only with different syntax, should fail', () => {
> 61 | fit.failing('failing passes = fails, should fail 1', () => {
| ^
62 | expect(10).toBe(10);
63 | });
64 |
at Suite.failing (__tests__/worksWithOnlyMode.test.js:61:7)
at Object.describe (__tests__/worksWithOnlyMode.test.js:60:1)
FAIL __tests__/worksWithSkipMode.test.js
● block with only, should pass › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
7 |
8 | describe('block with only, should pass', () => {
> 9 | it.skip.failing('skipped failing fails = passes, should pass', () => {
| ^
10 | expect(10).toBe(101);
11 | });
12 |
at Suite.failing (__tests__/worksWithSkipMode.test.js:9:11)
at Object.describe (__tests__/worksWithSkipMode.test.js:8:1)
● block with only, should fail › encountered a declaration exception
Jest: \`failing\` tests are only supported in \`jest-circus\`.
33 |
34 | describe('block with only, should fail', () => {
> 35 | it.skip.failing('failing passes = fails, should fail', () => {
| ^
36 | expect(10).toBe(10);
37 | });
38 |
at Suite.failing (__tests__/worksWithSkipMode.test.js:35:11)
at Object.describe (__tests__/worksWithSkipMode.test.js:34:1)"
`;