From 873f1db45d7d22ec7dc45c31437c084391bb93f3 Mon Sep 17 00:00:00 2001 From: Utsab Chowdhury Date: Fri, 12 Jan 2024 21:09:31 +0530 Subject: [PATCH] chore: update reporter code --- test/test_reporter/reporter.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_reporter/reporter.ts b/test/test_reporter/reporter.ts index 6c7a4957f4..4be254748c 100644 --- a/test/test_reporter/reporter.ts +++ b/test/test_reporter/reporter.ts @@ -421,6 +421,9 @@ export const generateTestReport = (testData, output, result) => { export const initaliseReport = () => { const htmlTemplate = generateHTMLTemplate(); + if (!fs.existsSync('test_reports')){ + fs.mkdirSync('test_reports'); +} fs.writeFileSync('test_reports/test-report.html', htmlTemplate); console.log('Report initialised'); };