diff --git a/dist/index.js b/dist/index.js
index 1f8f232..90d0b50 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -30564,7 +30564,7 @@ const createComment = (analyze, test, coverage, behindBy) => {
✅ - Linting / Formatting
${analyze.output.replaceAll("`|\"|'|<|>", "")}
${test.output.replaceAll("`|\"|'|<|>", "")}
- ${isSuccess ? "✅ - Branch is not behind" : null}
+ ${isSuccess ? "✅ - Branch is not behind" : ""}
${coverage.output.replaceAll("`|\"|'|<|>", "")}
@@ -30809,6 +30809,8 @@ const getTest = async () => {
else if (entry4) {
testDetails = entry4.error;
}
+ testDetails = testDetails.replace(/(?:\r\n|\r|\n)/g, "
");
+ testDetails = testDetails.replace(/(?:<>'"`)/g, "");
errorString.push("" + testName + "
`" + testDetails + "` ");
});
const output = `⛔️ - ${initialString}
@@ -33151,7 +33153,7 @@ const run = async () => {
const oldCoverage = (0, coverage_1.getOldCoverage)();
const analyzeStr = await (0, analyze_1.getAnalyze)();
const testStr = await (0, runTests_1.getTest)();
- const coverageStr = await (0, coverage_1.getCoverage)(oldCoverage);
+ const coverageStr = (0, coverage_1.getCoverage)(oldCoverage);
const comment = (0, comment_1.createComment)(analyzeStr, testStr, coverageStr, behindByStr);
(0, comment_1.postComment)(octokit, comment, github_1.context);
await (0, push_1.push)();
diff --git a/src/main.ts b/src/main.ts
index 9d3e478..b4b3216 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -20,7 +20,7 @@ const run = async () => {
const analyzeStr: stepResponse = await getAnalyze();
const testStr: stepResponse = await getTest();
- const coverageStr: stepResponse = await getCoverage(oldCoverage);
+ const coverageStr: stepResponse = getCoverage(oldCoverage);
const comment = createComment(analyzeStr, testStr, coverageStr, behindByStr);
diff --git a/src/scripts/comment.ts b/src/scripts/comment.ts
index 8798115..f80b358 100644
--- a/src/scripts/comment.ts
+++ b/src/scripts/comment.ts
@@ -18,7 +18,7 @@ export const createComment = (
✅ - Linting / Formatting
${analyze.output.replaceAll("`|\"|'|<|>", "")}
${test.output.replaceAll("`|\"|'|<|>", "")}
- ${isSuccess ? "✅ - Branch is not behind" : null}
+ ${isSuccess ? "✅ - Branch is not behind" : ""}
${coverage.output.replaceAll("`|\"|'|<|>", "")}
diff --git a/src/scripts/runTests.ts b/src/scripts/runTests.ts
index cbad047..25926a8 100644
--- a/src/scripts/runTests.ts
+++ b/src/scripts/runTests.ts
@@ -75,7 +75,8 @@ export const getTest = async (): Promise => {
} else if (entry4) {
testDetails = entry4.error;
}
-
+ testDetails = testDetails.replace(/(?:\r\n|\r|\n)/g, "
");
+ testDetails = testDetails.replace(/(?:<>'"`)/g, "");
errorString.push("" + testName + "
`" + testDetails + "` ");
});