-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix decorators by adding additional allure getter for mocha reporter
- Loading branch information
Showing
4 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { decorate } from "../../../"; | ||
import { allure, MochaAllure } from "allure-mocha/runtime"; | ||
import { allureGetter, MochaAllure } from "allure-mocha/runtime"; | ||
|
||
export class BaseTest { | ||
public static readonly TEST_URL = "https://custom.domain.com"; | ||
|
||
public before() { | ||
const allure = allureGetter(); | ||
|
||
decorate<MochaAllure>(allure); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { MochaAllure } from "./dist/MochaAllure"; | ||
export { MochaAllureReporter } from "./dist/MochaAllureReporter"; | ||
export { allure } from "./dist/MochaAllureReporter"; | ||
export { allure, allureGetter } from "./dist/MochaAllureReporter"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters