Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@testring/plugin-api

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testring/plugin-api - npm Package Compare versions

Comparing version
0.4.53
to
0.4.54
+5
-2
dist/modules/test-run-controller.js

@@ -20,6 +20,9 @@ "use strict";

}
shouldRetry(handler) {
this.registryWritePlugin("shouldRetry" /* shouldRetry */, handler);
shouldNotRetry(handler) {
this.registryWritePlugin("shouldNotRetry" /* shouldNotRetry */, handler);
}
shouldNotStart(handler) {
this.registryWritePlugin("shouldNotStart" /* shouldNotStart */, handler);
}
}
exports.TestRunControllerAPI = TestRunControllerAPI;
{
"name": "@testring/plugin-api",
"version": "0.4.53",
"version": "0.4.54",
"main": "./dist/index.js",

@@ -13,6 +13,6 @@ "types": "./src/index.ts",

"dependencies": {
"@testring/logger": "0.4.53",
"@testring/types": "0.4.53",
"@testring/utils": "0.4.53"
"@testring/logger": "0.4.54",
"@testring/types": "0.4.54",
"@testring/utils": "0.4.54"
}
}

@@ -6,3 +6,3 @@ import { TestRunControllerPlugins, IQueuedTest } from '@testring/types';

beforeRun(handler: (queue: Array<IQueuedTest>) => Promise<IQueuedTest[]>) {
beforeRun(handler: (queue: IQueuedTest[]) => Promise<IQueuedTest[]>) {
this.registryWritePlugin(TestRunControllerPlugins.beforeRun, handler);

@@ -23,9 +23,13 @@ }

afterRun(handler: (queue: Array<IQueuedTest>) => Promise<void>) {
afterRun(handler: (queue: IQueuedTest[]) => Promise<void>) {
this.registryWritePlugin(TestRunControllerPlugins.afterRun, handler);
}
shouldRetry(handler: (testPath: string) => Promise<boolean>) {
this.registryWritePlugin(TestRunControllerPlugins.shouldRetry, handler);
shouldNotRetry(handler: (state: boolean, test: IQueuedTest) => Promise<boolean>) {
this.registryWritePlugin(TestRunControllerPlugins.shouldNotRetry, handler);
}
shouldNotStart(handler: (state: boolean, test: IQueuedTest) => Promise<boolean>) {
this.registryWritePlugin(TestRunControllerPlugins.shouldNotStart, handler);
}
}