Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(config: Config.ProjectConfig, context: EnvironmentContext) {
super(config);
this._testPath = context.testPath!;
this._testName = path.basename(this._testPath).split(".")[0];
// set the name of the logger to the test
logger.setName(this._testName);
}