@stryker-mutator/cucumber-runner
Advanced tools
Comparing version 7.2.0 to 7.3.0
@@ -1,3 +0,3 @@ | ||
import { createRequire } from 'module'; | ||
import fs from 'fs'; | ||
import { fileURLToPath } from 'url'; | ||
import semver from 'semver'; | ||
@@ -16,5 +16,4 @@ import { commonTokens, tokens, } from '@stryker-mutator/api/plugin'; | ||
} | ||
const require = createRequire(import.meta.url); | ||
const StrykerFormatter = strykerFormatterModule.default; | ||
const strykerFormatterFile = require.resolve('./stryker-formatter.cjs'); | ||
const strykerFormatterFile = new URL('./stryker-formatter.cjs', import.meta.url); | ||
export class CucumberTestRunner { | ||
@@ -50,5 +49,8 @@ constructor(logger, options, globalNamespace) { | ||
var _a; | ||
const href = semver.satisfies(cucumberVersion, '>=10') | ||
? strykerFormatterFile.href | ||
: fileURLToPath(strykerFormatterFile.href); | ||
const { runConfiguration, useConfiguration } = await loadConfiguration({ | ||
provided: { | ||
format: [strykerFormatterFile], | ||
format: [href], | ||
retry: 0, | ||
@@ -55,0 +57,0 @@ parallel: 0, |
{ | ||
"name": "@stryker-mutator/cucumber-runner", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"description": "A plugin to use the cucumber test runner in Stryker, the JavaScript mutation testing framework", | ||
"files": [ | ||
"dist", | ||
"dist/schema", | ||
"dist/src-generated", | ||
"dist/src", | ||
"src-generated", | ||
@@ -47,4 +49,4 @@ "src" | ||
"devDependencies": { | ||
"@cucumber/cucumber": "9.5.1", | ||
"@stryker-mutator/test-helpers": "7.2.0", | ||
"@cucumber/cucumber": "10.0.0", | ||
"@stryker-mutator/test-helpers": "7.3.0", | ||
"@types/semver": "7.5.3" | ||
@@ -54,11 +56,11 @@ }, | ||
"@cucumber/cucumber": ">=8.0.0", | ||
"@stryker-mutator/core": "~7.2.0" | ||
"@stryker-mutator/core": "~7.3.0" | ||
}, | ||
"dependencies": { | ||
"@cucumber/messages": "^22.0.0", | ||
"@stryker-mutator/api": "7.2.0", | ||
"@stryker-mutator/util": "7.2.0", | ||
"@stryker-mutator/api": "7.3.0", | ||
"@stryker-mutator/util": "7.3.0", | ||
"semver": "^7.3.7" | ||
}, | ||
"gitHead": "fa746b5cb7a2ee91a232809a0adb0cf955996648" | ||
"gitHead": "deb82d861e13f17dbc80b57499c0347b1ec63f7f" | ||
} |
@@ -1,4 +0,5 @@ | ||
import { createRequire } from 'module'; | ||
import fs from 'fs'; | ||
import { fileURLToPath } from 'url'; | ||
import semver from 'semver'; | ||
@@ -66,5 +67,7 @@ import { Logger } from '@stryker-mutator/api/logging'; | ||
const require = createRequire(import.meta.url); | ||
const StrykerFormatter = strykerFormatterModule.default; | ||
const strykerFormatterFile = require.resolve('./stryker-formatter.cjs'); | ||
const strykerFormatterFile = new URL( | ||
'./stryker-formatter.cjs', | ||
import.meta.url, | ||
); | ||
@@ -133,6 +136,9 @@ interface ResolvedConfiguration { | ||
): Promise<DryRunResult> { | ||
const href = semver.satisfies(cucumberVersion, '>=10') | ||
? strykerFormatterFile.href | ||
: fileURLToPath(strykerFormatterFile.href); | ||
const { runConfiguration, useConfiguration }: ResolvedConfiguration = | ||
await loadConfiguration({ | ||
provided: { | ||
format: [strykerFormatterFile], | ||
format: [href], | ||
retry: 0, | ||
@@ -139,0 +145,0 @@ parallel: 0, |
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
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
4
69044
39
704
+ Added@stryker-mutator/api@7.3.0(transitive)
+ Added@stryker-mutator/core@7.3.0(transitive)
+ Added@stryker-mutator/instrumenter@7.3.0(transitive)
+ Added@stryker-mutator/util@7.3.0(transitive)
+ Addedcommander@11.1.0(transitive)
- Removed@stryker-mutator/api@7.2.0(transitive)
- Removed@stryker-mutator/core@7.2.0(transitive)
- Removed@stryker-mutator/instrumenter@7.2.0(transitive)
- Removed@stryker-mutator/util@7.2.0(transitive)
- Removedcommander@11.0.0(transitive)
- Removedlodash.flatmap@4.5.0(transitive)
Updated@stryker-mutator/api@7.3.0
Updated@stryker-mutator/util@7.3.0