Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Investigate extra newline output in truffle develop when running truffle test #5786

Open
davidmurdoch opened this issue Dec 14, 2022 · 0 comments

Comments

@davidmurdoch
Copy link
Member

davidmurdoch commented Dec 14, 2022

See here for where the new line causes issues:

// convert buffer to string
data = data.toString();
// workaround: remove extra newline in `truffle develop` console
// truffle test, for some reason, appends a newline to the data
// it emits here.
if (data.endsWith(os.EOL)) data = data.slice(0, -os.EOL.length);
console.log(data);

cc @cds-amal

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

No branches or pull requests

3 participants