We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e1785c + bbbee4d commit e227568Copy full SHA for e227568
sanity-report-dev11.js
@@ -1,7 +1,6 @@
1
-import Slack from "@slack/bolt";
2
-const { App } = Slack;
3
-import dotenv from "dotenv";
4
-import fs from "fs";
+const { App } = require("@slack/bolt");
+const dotenv = require("dotenv");
+const fs = require("fs");
5
6
dotenv.config();
7
@@ -56,7 +55,7 @@ const sendSlackMessage = async (message) => {
56
55
});
57
58
if (failedTests > 0) {
59
- await sendFailureDetails(result.ts);
+ await sendFailureDetails(result.ts);
60
}
61
} catch (error) {
62
console.error("Error sending Slack message:", error);
0 commit comments