You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"messageText": "No inputs were found in config file '__DYNAMIC__/tsconfig.json'. Specified 'include' paths were '[\\".\\"]' and 'exclude' paths were '[]'.",
166
+
},
167
+
],
168
+
},
169
+
"type": "invalid_tsconfig",
170
+
}
171
+
`)
172
+
})
173
+
166
174
it('will scaffold tsconfig if not present',async()=>{
▲ nexus:tsconfig Please set \`compilerOptions.rootDir\` to \\".\\"
345
-
▲ nexus:tsconfig Please set \`include\` to have \\".\\"
346
-
▲ nexus:tsconfig Please set \`compilerOptions.noEmit\` to true. This will ensure you do not accidentally emit using \`$ tsc\`. Use \`$ nexus build\` to build your app and emit JavaScript.
347
-
"
343
+
[7m1[0m bad json
344
+
[7m [0m [91m~~~[0m
345
+
",
346
+
"type": "generic",
347
+
}
348
348
`)
349
349
})
350
350
351
-
it('will fatal message and exit if invalid tsconfig schema',async()=>{
351
+
it('will return exception if invalid tsconfig schema',async()=>{
352
352
ctx.setup({
353
353
'tsconfig.json': '{ "exclude": "bad" }',
354
354
})
355
-
awaitctx.createLayoutThrow()
356
-
expect(stripAnsi(logs)).toMatchInlineSnapshot(`
357
-
"▲ nexus:tsconfig You have not setup the Nexus TypeScript Language Service Plugin. Add this to your compiler options:
▲ nexus:tsconfig Please set \`compilerOptions.rootDir\` to \\".\\"
362
-
▲ nexus:tsconfig Please set \`include\` to have \\".\\"
363
-
▲ nexus:tsconfig Please set \`compilerOptions.noEmit\` to true. This will ensure you do not accidentally emit using \`$ tsc\`. Use \`$ nexus build\` to build your app and emit JavaScript.
364
-
✕ nexus:tsconfig Your tsconfig.json is invalid
365
-
366
-
error TS5024: Compiler option 'exclude' requires a value of type Array.
`"{\\"_tag\\":\\"Left\\",\\"left\\":{\\"message\\":\\"Entrypoint does not exist\\",\\"context\\":{\\"path\\":\\"__DYNAMIC__/wrong-path.ts\\"}}}"`
515
+
`"{\\"_tag\\":\\"Left\\",\\"left\\":{\\"message\\":\\"Entrypoint does not exist\\",\\"context\\":{\\"path\\":\\"__DYNAMIC__/wrong-path.ts\\"},\\"type\\":\\"generic\\"}}"`
`"{\\"_tag\\":\\"Left\\",\\"left\\":{\\"message\\":\\"Entrypoint must be a .ts file\\",\\"context\\":{\\"path\\":\\"__DYNAMIC__/index.js\\"}}}"`
527
+
`"{\\"_tag\\":\\"Left\\",\\"left\\":{\\"message\\":\\"Entrypoint must be a .ts file\\",\\"context\\":{\\"path\\":\\"__DYNAMIC__/index.js\\"},\\"type\\":\\"generic\\"}}"`
0 commit comments