Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

playwright-slack-report

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-slack-report - npm Package Compare versions

Comparing version 1.1.15 to 1.1.16

6

dist/src/SlackClient.d.ts

@@ -19,3 +19,3 @@ import { WebClient, KnownBlock, Block, ChatPostMessageResponse, LogLevel } from '@slack/web-api';

slackLogLevel?: LogLevel;
unfurlEnable?: boolean;
disableUnfurl?: boolean;
summaryResults: SummaryResults;

@@ -29,3 +29,3 @@ showInThread: boolean;

}>>;
attachDetailsToThread({ channelIds, ts, summaryResults, maxNumberOfFailures, unfurlEnable, fakeRequest, }: {
attachDetailsToThread({ channelIds, ts, summaryResults, maxNumberOfFailures, disableUnfurl, fakeRequest, }: {
channelIds: Array<string>;

@@ -35,3 +35,3 @@ ts: string;

maxNumberOfFailures: number;
unfurlEnable?: boolean;
disableUnfurl?: boolean;
fakeRequest?: Function;

@@ -38,0 +38,0 @@ }): Promise<any[]>;

@@ -29,3 +29,3 @@ "use strict";

const result = [];
const unfurl = options.unfurlEnable;
const unfurl = !options.disableUnfurl;
for (const channel of options.channelIds) {

@@ -67,3 +67,3 @@ let chatResponse;

}
async attachDetailsToThread({ channelIds, ts, summaryResults, maxNumberOfFailures, unfurlEnable, fakeRequest, }) {
async attachDetailsToThread({ channelIds, ts, summaryResults, maxNumberOfFailures, disableUnfurl, fakeRequest, }) {
const result = [];

@@ -78,3 +78,3 @@ const blocks = await (0, LayoutGenerator_1.generateFailures)(summaryResults, maxNumberOfFailures);

else {
chatResponse = await SlackClient.doPostRequest(this.slackWebClient, channel, blocks, unfurlEnable, ts);
chatResponse = await SlackClient.doPostRequest(this.slackWebClient, channel, blocks, disableUnfurl, ts);
}

@@ -81,0 +81,0 @@ if (chatResponse.ok) {

@@ -13,3 +13,3 @@ import { FullConfig, Reporter, Suite, TestCase, TestResult } from '@playwright/test/reporter';

private slackOAuthToken;
private enableUnfurl;
private disableUnfurl;
private suite;

@@ -16,0 +16,0 @@ logs: string[];

@@ -17,3 +17,3 @@ "use strict";

slackOAuthToken;
enableUnfurl;
disableUnfurl;
suite;

@@ -33,3 +33,3 @@ logs = [];

this.slackOAuthToken = slackReporterConfig.slackOAuthToken || undefined;
this.enableUnfurl = slackReporterConfig.enableUnfurl || true;
this.disableUnfurl = slackReporterConfig.disableUnfurl || false;
this.showInThread = slackReporterConfig.showInThread || false;

@@ -67,3 +67,3 @@ }

maxNumberOfFailures: this.maxNumberOfFailuresToShow,
unfurlEnable: this.enableUnfurl,
disableUnfurl: this.disableUnfurl,
summaryResults: resultSummary,

@@ -70,0 +70,0 @@ showInThread: this.showInThread,

@@ -31,3 +31,3 @@ {

"name": "playwright-slack-report",
"version": "1.1.15",
"version": "1.1.16",
"main": "index.js",

@@ -34,0 +34,0 @@ "types": "dist/index.d.ts",

@@ -132,3 +132,3 @@ # playwright-slack-report ![Builds](https://github.com/ryanrosello-og/playwright-slack-report/actions/workflows/playwright.yml/badge.svg) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ryanrosello-og/playwright-slack-report/blob/master/LICENSE) [![Coverage Status](https://coveralls.io/repos/github/ryanrosello-og/playwright-slack-report/badge.svg?branch=main)](https://coveralls.io/github/ryanrosello-og/playwright-slack-report?branch=main)

slackLogLevel: LogLevel.DEBUG,
enableUnfurl: false,
disableUnfurl: true,
showInThread: true,

@@ -159,3 +159,3 @@ },

This option allows you to control slack client severity levels for log entries. It accepts a value from @slack/web-api `LogLevel` enum
### **enableUnfurl** (default: true)
### **disableUnfurl** (default: true)
Enable or disable unfurling of links in Slack messages.

@@ -162,0 +162,0 @@ ### **showInThread** (default: false)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc