@testkit/send-test-report
Version:
A simple utility to send CTRF-style test reports to Slack or Microsoft Teams via webhook.
87 lines • 2 kB
TypeScript
export interface SlackMessage {
blocks: [
{
type: 'header';
text: {
type: 'plain_text';
text: string;
emoji: boolean;
};
},
{
type: 'context';
elements: {
type: 'mrkdwn';
text: string;
}[];
},
{
type: 'divider';
},
{
type: 'section';
text: {
type: 'mrkdwn';
text: string;
};
},
{
type: 'section';
fields: [
{
'type': 'mrkdwn';
'text': string;
},
{
'type': 'mrkdwn';
'text': string;
}
];
},
{
type: 'section';
fields: [
{
'type': 'mrkdwn';
'text': string;
},
{
'type': 'mrkdwn';
'text': string;
},
{
'type': 'mrkdwn';
'text': string;
},
{
'type': 'mrkdwn';
'text': string;
}
];
},
{
type: 'divider';
},
{
type: 'section';
text: {
type: 'mrkdwn';
text: string;
};
},
{
type: 'actions';
elements: {
type: 'button';
text: {
type: 'plain_text';
text: string;
emoji: boolean;
};
url: string;
style: 'primary';
}[];
}
];
}
//# sourceMappingURL=slackMessage.d.ts.map