allure-mocha
Advanced tools
Comparing version 3.0.0-beta.5 to 3.0.0-beta.6
@@ -186,3 +186,3 @@ "use strict"; | ||
_defineProperty(this, "onHookStart", hook => { | ||
var _hook$ctx, _hook$originalTitle; | ||
var _hook$ctx, _ref, _hook$originalTitle; | ||
var [hookCategory, hookScope] = (0, _utils.getHookType)(hook); | ||
@@ -194,3 +194,3 @@ var test = (_hook$ctx = hook.ctx) === null || _hook$ctx === void 0 ? void 0 : _hook$ctx.currentTest; | ||
} | ||
var name = (_hook$originalTitle = hook.originalTitle) !== null && _hook$originalTitle !== void 0 ? _hook$originalTitle : ""; | ||
var name = (_ref = (_hook$originalTitle = hook.originalTitle) !== null && _hook$originalTitle !== void 0 ? _hook$originalTitle : hook.title) !== null && _ref !== void 0 ? _ref : ""; | ||
if (hookCategory) { | ||
@@ -230,8 +230,8 @@ this.currentHook = this.runtime.startFixture(scopeUuid, hookCategory, { | ||
_defineProperty(this, "getCurrentSuiteScope", () => this.scopesStack.length > 0 ? this.scopesStack[this.scopesStack.length - 1] : undefined); | ||
var _ref = _opts.reporterOptions || {}, | ||
var _ref2 = _opts.reporterOptions || {}, | ||
{ | ||
resultsDir = "allure-results", | ||
writer | ||
} = _ref, | ||
restOptions = _objectWithoutProperties(_ref, _excluded); | ||
} = _ref2, | ||
restOptions = _objectWithoutProperties(_ref2, _excluded); | ||
this.isInWorker = isInWorker; | ||
@@ -238,0 +238,0 @@ this.runtime = new _reporter.ReporterRuntime(_objectSpread({ |
@@ -105,4 +105,4 @@ "use strict"; | ||
var getHookType = hook => { | ||
if (hook.originalTitle) { | ||
var match = hookTypeRegexp.exec(hook.originalTitle); | ||
if (hook.title) { | ||
var match = hookTypeRegexp.exec(hook.title); | ||
if (match) { | ||
@@ -109,0 +109,0 @@ return [match[1], match[2]]; |
@@ -178,3 +178,3 @@ var _excluded = ["resultsDir", "writer"]; | ||
_defineProperty(this, "onHookStart", hook => { | ||
var _hook$ctx, _hook$originalTitle; | ||
var _hook$ctx, _ref, _hook$originalTitle; | ||
var [hookCategory, hookScope] = getHookType(hook); | ||
@@ -186,3 +186,3 @@ var test = (_hook$ctx = hook.ctx) === null || _hook$ctx === void 0 ? void 0 : _hook$ctx.currentTest; | ||
} | ||
var name = (_hook$originalTitle = hook.originalTitle) !== null && _hook$originalTitle !== void 0 ? _hook$originalTitle : ""; | ||
var name = (_ref = (_hook$originalTitle = hook.originalTitle) !== null && _hook$originalTitle !== void 0 ? _hook$originalTitle : hook.title) !== null && _ref !== void 0 ? _ref : ""; | ||
if (hookCategory) { | ||
@@ -222,8 +222,8 @@ this.currentHook = this.runtime.startFixture(scopeUuid, hookCategory, { | ||
_defineProperty(this, "getCurrentSuiteScope", () => this.scopesStack.length > 0 ? this.scopesStack[this.scopesStack.length - 1] : undefined); | ||
var _ref = _opts.reporterOptions || {}, | ||
var _ref2 = _opts.reporterOptions || {}, | ||
{ | ||
resultsDir = "allure-results", | ||
writer | ||
} = _ref, | ||
restOptions = _objectWithoutProperties(_ref, _excluded); | ||
} = _ref2, | ||
restOptions = _objectWithoutProperties(_ref2, _excluded); | ||
this.isInWorker = isInWorker; | ||
@@ -230,0 +230,0 @@ this.runtime = new ReporterRuntime(_objectSpread({ |
@@ -86,4 +86,4 @@ import { dirname, extname, join } from "node:path"; | ||
export var getHookType = hook => { | ||
if (hook.originalTitle) { | ||
var match = hookTypeRegexp.exec(hook.originalTitle); | ||
if (hook.title) { | ||
var match = hookTypeRegexp.exec(hook.title); | ||
if (match) { | ||
@@ -90,0 +90,0 @@ return [match[1], match[2]]; |
{ | ||
"name": "allure-mocha", | ||
"version": "3.0.0-beta.5", | ||
"version": "3.0.0-beta.6", | ||
"description": "Allure Mocha integration", | ||
@@ -58,3 +58,3 @@ "keywords": [ | ||
"dependencies": { | ||
"allure-js-commons": "3.0.0-beta.5" | ||
"allure-js-commons": "3.0.0-beta.6" | ||
}, | ||
@@ -68,3 +68,2 @@ "devDependencies": { | ||
"@types/babel__preset-env": "^7", | ||
"@types/chai": "^4.3.6", | ||
"@types/eslint": "^8", | ||
@@ -76,8 +75,5 @@ "@types/mocha": "^10.0.1", | ||
"allure-commandline": "^2.29.0", | ||
"allure-vitest": "3.0.0-beta.5", | ||
"allure-vitest": "3.0.0-beta.6", | ||
"babel-plugin-add-module-exports": "^1.0.4", | ||
"babel-plugin-transform-import-meta": "^2.2.1", | ||
"chai": "^4.3.8", | ||
"chai-like": "^1.1.1", | ||
"chai-things": "^0.2.0", | ||
"eslint": "^8.57.0", | ||
@@ -91,8 +87,5 @@ "eslint-config-prettier": "^9.0.0", | ||
"glob": "^10.4.1", | ||
"mocha": "^10.2.0", | ||
"mocha": "^10.6.0", | ||
"npm-run-all2": "^6.1.2", | ||
"rimraf": "^5.0.1", | ||
"source-map-support": "^0.5.21", | ||
"ts-node": "^10.9.2", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.2.2", | ||
@@ -102,4 +95,4 @@ "vitest": "^1.6.0" | ||
"peerDependencies": { | ||
"mocha": ">=6.2.x" | ||
"mocha": ">=6.2.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
173655
28
+ Addedallure-js-commons@3.0.0-beta.6(transitive)
- Removedallure-js-commons@3.0.0-beta.5(transitive)