Skip to content

Commit

Permalink
put console log under assets folder
Browse files Browse the repository at this point in the history
  • Loading branch information
tianfeng92 committed Aug 6, 2024
1 parent 57f27de commit d5f73c2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/playwright-recorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ const escapeSequenceRegex = new RegExp(

export function playwrightRecorder() {
// console.log is saved out of reportsDir since it is cleared on startup.
const ws = fs.createWriteStream(path.join(process.cwd(), 'console2.log'), {
flags: 'w+',
mode: 0o644,
});
const ws = fs.createWriteStream(
path.join(process.cwd(), '__assets__', 'console2.log'),
{
flags: 'w+',
mode: 0o644,
},
);
const stripAsciiTransform = new Transform({
transform(chunk, _, callback) {
// list reporter uses escape codes to rewrite lines, strip them to make console output more readable
Expand Down

0 comments on commit d5f73c2

Please sign in to comment.