Skip to content

Commit

Permalink
update: add console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianspha committed Jan 16, 2025
1 parent 342ebc9 commit d7f56f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/solidity/src/tests/cli-tests/tests/common.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ describe("Standard JSON compilation with path options", () => {
});

it("Compiler run successful without emiting warnings", () => {
console.log("result.output: ", result.output)
const parsedResults = JSON.parse(result.output)
const cleanOutput = result.output.trim().replace(/[\r\n]+/g, '');
const parsedResults = JSON.parse(cleanOutput);
console.log("result.output: ", parsedResults)
expect(parsedResults.errors.filter((error: { type: string; }) => error.type != 'Warning')).toEqual([]);
});
});
Expand Down

0 comments on commit d7f56f5

Please sign in to comment.