|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`test-helpers 1`] = ` |
| 4 | + × jest --no-cache |
| 5 | + ↳ exit code: 1 |
| 6 | + ===[ STDOUT ]=================================================================== |
| 7 | + |
| 8 | + ===[ STDERR ]=================================================================== |
| 9 | + PASS ./pass.spec.ts |
| 10 | + FAIL ./fail.spec.ts |
| 11 | + ● Test suite failed to run |
| 12 | + |
| 13 | + TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 14 | + fail.spec.ts:7:10 - error TS2554: Expected 0 arguments, but got 1. |
| 15 | + |
| 16 | + 7 expect(mocked(foo)('hello')).toBeUndefined() |
| 17 | + ~~~~~~~~~~~~~~~~~~~~ |
| 18 | + fail.spec.ts:9:46 - error TS2345: Argument of type '42' is not assignable to parameter of type 'string'. |
| 19 | + |
| 20 | + 9 expect(mocked(bar, true).dummy.deep.deeper(42)).toBeUndefined() |
| 21 | + ~~ |
| 22 | + |
| 23 | + ts-jest[root] (WARN) The \`mocked\` helper has been moved to \`ts-jest/utils\`. Use \`import { mocked } from 'ts-jest/utils'\` instead. |
| 24 | + PASS ./deprecated.spec.ts |
| 25 | + |
| 26 | + Test Suites: 1 failed, 2 passed, 3 total |
| 27 | + Tests: 3 passed, 3 total |
| 28 | + Snapshots: 0 total |
| 29 | + Time: XXs |
| 30 | + Ran all test suites. |
| 31 | + ================================================================================ |
| 32 | +`; |
| 33 | + |
| 34 | +exports[`with esModuleInterop set to false 1`] = ` |
| 35 | + × jest --no-cache |
| 36 | + ↳ exit code: 1 |
| 37 | + ===[ STDOUT ]=================================================================== |
| 38 | + |
| 39 | + ===[ STDERR ]=================================================================== |
| 40 | + PASS ./pass.spec.ts |
| 41 | + FAIL ./fail.spec.ts |
| 42 | + ● Test suite failed to run |
| 43 | + |
| 44 | + TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 45 | + fail.spec.ts:7:10 - error TS2554: Expected 0 arguments, but got 1. |
| 46 | + |
| 47 | + 7 expect(mocked(foo)('hello')).toBeUndefined() |
| 48 | + ~~~~~~~~~~~~~~~~~~~~ |
| 49 | + fail.spec.ts:9:46 - error TS2345: Argument of type '42' is not assignable to parameter of type 'string'. |
| 50 | + |
| 51 | + 9 expect(mocked(bar, true).dummy.deep.deeper(42)).toBeUndefined() |
| 52 | + ~~ |
| 53 | + |
| 54 | + ts-jest[root] (WARN) The \`mocked\` helper has been moved to \`ts-jest/utils\`. Use \`import { mocked } from 'ts-jest/utils'\` instead. |
| 55 | + PASS ./deprecated.spec.ts |
| 56 | + |
| 57 | + Test Suites: 1 failed, 2 passed, 3 total |
| 58 | + Tests: 3 passed, 3 total |
| 59 | + Snapshots: 0 total |
| 60 | + Time: XXs |
| 61 | + Ran all test suites. |
| 62 | + ================================================================================ |
| 63 | +`; |
0 commit comments