Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add newline between harness output and user output #300

Open
ORESoftware opened this issue Sep 6, 2018 · 1 comment
Open

add newline between harness output and user output #300

ORESoftware opened this issue Sep 6, 2018 · 1 comment

Comments

@ORESoftware
Copy link
Collaborator

The following:

       [1] ✔ 'passes' (109ms)
       [2] ✔ 'passes' (110ms)
        stderr for 2: assert.js:337
        stderr for 2:     throw err;
        stderr for 2:     ^
        stderr for 2: 
        stderr for 2: AssertionError [ERR_ASSERTION]: "short" letter must be alphabetic (uppercase or lowercase.
        stderr for 2:     at new CliParser (/home/oleg/WebstormProjects/oresoftware/cli.ts/dist/index.js:40:17)
        stderr for 2:     at Object.<anonymous> (/home/oleg/WebstormProjects/oresoftware/cli.ts/test/fixtures/script1.js:11:11)
        stderr for 2:     at Module._compile (internal/modules/cjs/loader.js:689:30)
        stderr for 2:     at startup (internal/bootstrap/node.js:266:19)
        stderr for 2:     at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)
       [3] ✔ 'passes' (114ms)

should look like this instead:

       [1] ✔ 'passes' (109ms)
       [2] ✔ 'passes' (110ms)

        stderr for 2: assert.js:337
        stderr for 2:     throw err;
        stderr for 2:     ^
        stderr for 2: 
        stderr for 2: AssertionError [ERR_ASSERTION]: "short" letter must be alphabetic (uppercase or lowercase.
        stderr for 2:     at new CliParser (/home/oleg/WebstormProjects/oresoftware/cli.ts/dist/index.js:40:17)
        stderr for 2:     at Object.<anonymous> (/home/oleg/WebstormProjects/oresoftware/cli.ts/test/fixtures/script1.js:11:11)
        stderr for 2:     at Module._compile (internal/modules/cjs/loader.js:689:30)
        stderr for 2:     at startup (internal/bootstrap/node.js:266:19)
        stderr for 2:     at bootstrapNodeJSCore (internal/bootstrap/node.js:596:3)

       [3] ✔ 'passes' (114ms)

@ORESoftware
Copy link
Collaborator Author

accomplish this by patching process.stdout.write and process.stderr.write, obviously

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant