diff --git a/examples/vitest.examples.config.ts b/examples/vitest.examples.config.ts index 845c6195..afd2cb41 100644 --- a/examples/vitest.examples.config.ts +++ b/examples/vitest.examples.config.ts @@ -6,7 +6,7 @@ export default defineConfig({ test: { globals: true, passWithNoTests: true, - testTimeout: 120 * 1000, + testTimeout: 10 * 60 * 1000, printConsoleTrace: true, setupFiles: ["./tests/setup.examples.ts"], deps: { diff --git a/tests/examples/examples.test.ts b/tests/examples/examples.test.ts index 83b7765f..9b06f2db 100644 --- a/tests/examples/examples.test.ts +++ b/tests/examples/examples.test.ts @@ -64,20 +64,16 @@ describe("E2E Examples", async () => { it.concurrent.each(exampleFiles)(`Run %s`, async (example) => { await execAsync(`yarn start -- ${example} <<< "Hello world"`) - .then((stdout) => { + .then(({ stdout, stderr }) => { // eslint-disable-next-line no-console - console.log({ - path: example, - result: stdout.stdout, - error: stdout.stderr, - }); - expect(stdout.stderr).toBeFalsy(); + console.log("STDOUT:", stdout); + expect(stderr).toBeFalsy(); }) .catch((_e) => { const error = _e as ExecException; // eslint-disable-next-line no-console - console.error("STDOUT:", error.stderr); + console.error("STDOUT:", error.stdout); expect(error.stderr).toBeFalsy(); expect(error.code).toBe(0);