|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`With compilerHost enabled and incremental disabled should fail using template "with-typescript-2-7" 1`] = ` |
| 4 | + × jest --no-cache |
| 5 | + ↳ exit code: 1 |
| 6 | + ===[ STDOUT ]=================================================================== |
| 7 | + |
| 8 | + ===[ STDERR ]=================================================================== |
| 9 | + FAIL ./main.spec.ts |
| 10 | + ● Test suite failed to run |
| 11 | + |
| 12 | + TypeError: Cannot read property 'maxNodeModuleJsDepth' of undefined |
| 13 | + |
| 14 | + at Object.createProgram (../../__templates__/with-typescript-2-7/node_modules/typescript/lib/typescript.js:73929:51) |
| 15 | + |
| 16 | + Test Suites: 1 failed, 1 total |
| 17 | + Tests: 0 total |
| 18 | + Snapshots: 0 total |
| 19 | + Time: XXs |
| 20 | + Ran all test suites. |
| 21 | + ================================================================================ |
| 22 | +`; |
| 23 | + |
| 24 | +exports[`With compilerHost enabled and incremental disabled should fail using template "with-unsupported-version" 1`] = ` |
| 25 | + × jest --no-cache |
| 26 | + ↳ exit code: 1 |
| 27 | + ===[ STDOUT ]=================================================================== |
| 28 | + |
| 29 | + ===[ STDERR ]=================================================================== |
| 30 | + ts-jest[versions] (WARN) Version 2.5.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. |
| 31 | + FAIL ./main.spec.ts |
| 32 | + ● Test suite failed to run |
| 33 | + |
| 34 | + TypeError: Cannot read property 'maxNodeModuleJsDepth' of undefined |
| 35 | + |
| 36 | + at Object.createProgram (../../__templates__/with-unsupported-version/node_modules/typescript/lib/typescript.js:69709:51) |
| 37 | + |
| 38 | + Test Suites: 1 failed, 1 total |
| 39 | + Tests: 0 total |
| 40 | + Snapshots: 0 total |
| 41 | + Time: XXs |
| 42 | + Ran all test suites. |
| 43 | + ================================================================================ |
| 44 | +`; |
| 45 | + |
| 46 | +exports[`With compilerHost enabled and incremental disabled should pass using template "default" 1`] = ` |
| 47 | + √ jest --no-cache |
| 48 | + ↳ exit code: 0 |
| 49 | + ===[ STDOUT ]=================================================================== |
| 50 | + |
| 51 | + ===[ STDERR ]=================================================================== |
| 52 | + ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 53 | + main.spec.ts:4:9 - error TS2322: Type 'number' is not assignable to type 'string'. |
| 54 | + |
| 55 | + 4 const x: string = g(5) |
| 56 | + ~ |
| 57 | + PASS ./main.spec.ts |
| 58 | + √ should pass |
| 59 | + |
| 60 | + Test Suites: 1 passed, 1 total |
| 61 | + Tests: 1 passed, 1 total |
| 62 | + Snapshots: 0 total |
| 63 | + Time: XXs |
| 64 | + Ran all test suites. |
| 65 | + ================================================================================ |
| 66 | +`; |
| 67 | + |
| 68 | +exports[`With compilerHost enabled and incremental disabled should pass using template "with-babel-7" 1`] = ` |
| 69 | + √ jest --no-cache |
| 70 | + ↳ exit code: 0 |
| 71 | + ===[ STDOUT ]=================================================================== |
| 72 | + |
| 73 | + ===[ STDERR ]=================================================================== |
| 74 | + ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 75 | + main.spec.ts:4:9 - error TS2322: Type 'number' is not assignable to type 'string'. |
| 76 | + |
| 77 | + 4 const x: string = g(5) |
| 78 | + ~ |
| 79 | + PASS ./main.spec.ts |
| 80 | + √ should pass |
| 81 | + |
| 82 | + Test Suites: 1 passed, 1 total |
| 83 | + Tests: 1 passed, 1 total |
| 84 | + Snapshots: 0 total |
| 85 | + Time: XXs |
| 86 | + Ran all test suites. |
| 87 | + ================================================================================ |
| 88 | +`; |
| 89 | + |
| 90 | +exports[`With compilerHost enabled and incremental disabled should pass using template "with-babel-7-string-config" 1`] = ` |
| 91 | + √ jest --no-cache |
| 92 | + ↳ exit code: 0 |
| 93 | + ===[ STDOUT ]=================================================================== |
| 94 | + |
| 95 | + ===[ STDERR ]=================================================================== |
| 96 | + ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 97 | + main.spec.ts:4:9 - error TS2322: Type 'number' is not assignable to type 'string'. |
| 98 | + |
| 99 | + 4 const x: string = g(5) |
| 100 | + ~ |
| 101 | + PASS ./main.spec.ts |
| 102 | + √ should pass |
| 103 | + |
| 104 | + Test Suites: 1 passed, 1 total |
| 105 | + Tests: 1 passed, 1 total |
| 106 | + Snapshots: 0 total |
| 107 | + Time: XXs |
| 108 | + Ran all test suites. |
| 109 | + ================================================================================ |
| 110 | +`; |
| 111 | + |
| 112 | +exports[`With compilerHost enabled and incremental enabled should fail using template "with-typescript-2-7" 1`] = ` |
| 113 | + × jest --no-cache |
| 114 | + ↳ exit code: 1 |
| 115 | + ===[ STDOUT ]=================================================================== |
| 116 | + |
| 117 | + ===[ STDERR ]=================================================================== |
| 118 | + FAIL ./main.spec.ts |
| 119 | + ● Test suite failed to run |
| 120 | + |
| 121 | + TypeError: Cannot read property 'maxNodeModuleJsDepth' of undefined |
| 122 | + |
| 123 | + at Object.createProgram (../../__templates__/with-typescript-2-7/node_modules/typescript/lib/typescript.js:73929:51) |
| 124 | + |
| 125 | + Test Suites: 1 failed, 1 total |
| 126 | + Tests: 0 total |
| 127 | + Snapshots: 0 total |
| 128 | + Time: XXs |
| 129 | + Ran all test suites. |
| 130 | + ================================================================================ |
| 131 | +`; |
| 132 | + |
| 133 | +exports[`With compilerHost enabled and incremental enabled should fail using template "with-unsupported-version" 1`] = ` |
| 134 | + × jest --no-cache |
| 135 | + ↳ exit code: 1 |
| 136 | + ===[ STDOUT ]=================================================================== |
| 137 | + |
| 138 | + ===[ STDERR ]=================================================================== |
| 139 | + ts-jest[versions] (WARN) Version 2.5.3 of typescript installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=2.7.0 <4.0.0). Please do not report issues in ts-jest if you are using unsupported versions. |
| 140 | + FAIL ./main.spec.ts |
| 141 | + ● Test suite failed to run |
| 142 | + |
| 143 | + TypeError: Cannot read property 'maxNodeModuleJsDepth' of undefined |
| 144 | + |
| 145 | + at Object.createProgram (../../__templates__/with-unsupported-version/node_modules/typescript/lib/typescript.js:69709:51) |
| 146 | + |
| 147 | + Test Suites: 1 failed, 1 total |
| 148 | + Tests: 0 total |
| 149 | + Snapshots: 0 total |
| 150 | + Time: XXs |
| 151 | + Ran all test suites. |
| 152 | + ================================================================================ |
| 153 | +`; |
| 154 | + |
| 155 | +exports[`With compilerHost enabled and incremental enabled should pass using template "default" 1`] = ` |
| 156 | + √ jest --no-cache |
| 157 | + ↳ exit code: 0 |
| 158 | + ===[ STDOUT ]=================================================================== |
| 159 | + |
| 160 | + ===[ STDERR ]=================================================================== |
| 161 | + ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 162 | + main.spec.ts:4:9 - error TS2322: Type 'number' is not assignable to type 'string'. |
| 163 | + |
| 164 | + 4 const x: string = g(5) |
| 165 | + ~ |
| 166 | + PASS ./main.spec.ts |
| 167 | + √ should pass |
| 168 | + |
| 169 | + Test Suites: 1 passed, 1 total |
| 170 | + Tests: 1 passed, 1 total |
| 171 | + Snapshots: 0 total |
| 172 | + Time: XXs |
| 173 | + Ran all test suites. |
| 174 | + ================================================================================ |
| 175 | +`; |
| 176 | + |
| 177 | +exports[`With compilerHost enabled and incremental enabled should pass using template "with-babel-7" 1`] = ` |
| 178 | + √ jest --no-cache |
| 179 | + ↳ exit code: 0 |
| 180 | + ===[ STDOUT ]=================================================================== |
| 181 | + |
| 182 | + ===[ STDERR ]=================================================================== |
| 183 | + ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 184 | + main.spec.ts:4:9 - error TS2322: Type 'number' is not assignable to type 'string'. |
| 185 | + |
| 186 | + 4 const x: string = g(5) |
| 187 | + ~ |
| 188 | + PASS ./main.spec.ts |
| 189 | + √ should pass |
| 190 | + |
| 191 | + Test Suites: 1 passed, 1 total |
| 192 | + Tests: 1 passed, 1 total |
| 193 | + Snapshots: 0 total |
| 194 | + Time: XXs |
| 195 | + Ran all test suites. |
| 196 | + ================================================================================ |
| 197 | +`; |
| 198 | + |
| 199 | +exports[`With compilerHost enabled and incremental enabled should pass using template "with-babel-7-string-config" 1`] = ` |
| 200 | + √ jest --no-cache |
| 201 | + ↳ exit code: 0 |
| 202 | + ===[ STDOUT ]=================================================================== |
| 203 | + |
| 204 | + ===[ STDERR ]=================================================================== |
| 205 | + ts-jest[ts-compiler] (WARN) TypeScript diagnostics (customize using \`[jest-config].globals.ts-jest.diagnostics\` option): |
| 206 | + main.spec.ts:4:9 - error TS2322: Type 'number' is not assignable to type 'string'. |
| 207 | + |
| 208 | + 4 const x: string = g(5) |
| 209 | + ~ |
| 210 | + PASS ./main.spec.ts |
| 211 | + √ should pass |
| 212 | + |
| 213 | + Test Suites: 1 passed, 1 total |
| 214 | + Tests: 1 passed, 1 total |
| 215 | + Snapshots: 0 total |
| 216 | + Time: XXs |
| 217 | + Ran all test suites. |
| 218 | + ================================================================================ |
| 219 | +`; |
0 commit comments