Socket
Socket
Sign inDemoInstall

@stryker-mutator/cucumber-runner

Package Overview
Dependencies
272
Maintainers
4
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.3.0 to 8.0.0

19

dist/src/cucumber-test-runner.js

@@ -19,4 +19,8 @@ import fs from 'fs';

export class CucumberTestRunner {
logger;
static inject = tokens(commonTokens.logger, commonTokens.options, pluginTokens.globalNamespace);
supportCodeLibrary;
options;
instrumenterContext;
constructor(logger, options, globalNamespace) {
var _a;
this.logger = logger;

@@ -26,3 +30,3 @@ guardForCucumberJSVersion();

this.instrumenterContext =
(_a = global[globalNamespace]) !== null && _a !== void 0 ? _a : (global[globalNamespace] = {});
global[globalNamespace] ?? (global[globalNamespace] = {});
StrykerFormatter.instrumenterContext = this.instrumenterContext;

@@ -49,3 +53,2 @@ }

async run(disableBail, testFilter) {
var _a;
const href = semver.satisfies(cucumberVersion, '>=10')

@@ -60,3 +63,3 @@ ? strykerFormatterFile.href

failFast: !disableBail,
tags: (_a = this.options.tags) === null || _a === void 0 ? void 0 : _a.map((tag) => `(${tag})`).join(' and '),
tags: this.options.tags?.map((tag) => `(${tag})`).join(' and '),
},

@@ -89,3 +92,3 @@ profiles: this.options.profile ? [this.options.profile] : undefined,

const failedTest = tests.find(hasFailed);
if (failedTest === null || failedTest === void 0 ? void 0 : failedTest.failureMessage.startsWith('TypeError:')) {
if (failedTest?.failureMessage.startsWith('TypeError:')) {
return {

@@ -103,7 +106,6 @@ status: DryRunStatus.Error,

if (testFilter) {
return Object.entries(testFilter === null || testFilter === void 0 ? void 0 : testFilter.reduce((acc, testId) => {
var _a;
return Object.entries(testFilter?.reduce((acc, testId) => {
const [fileName, lineNumber] = testId.split(':');
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const lines = (_a = acc[fileName]) !== null && _a !== void 0 ? _a : (acc[fileName] = []);
const lines = acc[fileName] ?? (acc[fileName] = []);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion

@@ -122,3 +124,2 @@ lines.push(lineNumber);

}
CucumberTestRunner.inject = tokens(commonTokens.logger, commonTokens.options, pluginTokens.globalNamespace);
function hasFailed(test) {

@@ -125,0 +126,0 @@ return test.status === TestStatus.Failed;

{
"name": "@stryker-mutator/cucumber-runner",
"version": "7.3.0",
"version": "8.0.0",
"description": "A plugin to use the cucumber test runner in Stryker, the JavaScript mutation testing framework",

@@ -32,3 +32,3 @@ "files": [

"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},

@@ -50,17 +50,17 @@ "keywords": [

"devDependencies": {
"@cucumber/cucumber": "10.0.0",
"@stryker-mutator/test-helpers": "7.3.0",
"@types/semver": "7.5.3"
"@cucumber/cucumber": "10.0.1",
"@stryker-mutator/test-helpers": "8.0.0",
"@types/semver": "7.5.6"
},
"peerDependencies": {
"@cucumber/cucumber": ">=8.0.0",
"@stryker-mutator/core": "~7.3.0"
"@stryker-mutator/core": "~8.0.0"
},
"dependencies": {
"@cucumber/messages": "^22.0.0",
"@stryker-mutator/api": "7.3.0",
"@stryker-mutator/util": "7.3.0",
"@cucumber/messages": "^24.0.0",
"@stryker-mutator/api": "8.0.0",
"@stryker-mutator/util": "8.0.0",
"semver": "^7.3.7"
},
"gitHead": "deb82d861e13f17dbc80b57499c0347b1ec63f7f"
"gitHead": "64c77210df8facb7b8b1419a215533a6af5eca8e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc