From 550c296d2ca56eb0f125b56c025999b88579ea66 Mon Sep 17 00:00:00 2001 From: Boris Serdiuk Date: Sat, 17 Jul 2021 23:02:46 +0200 Subject: [PATCH] fix jasmine type definitions --- packages/allure-jasmine/test/helpers.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/allure-jasmine/test/helpers.ts b/packages/allure-jasmine/test/helpers.ts index 1b0c048a5..9ef8a31b9 100644 --- a/packages/allure-jasmine/test/helpers.ts +++ b/packages/allure-jasmine/test/helpers.ts @@ -3,7 +3,14 @@ import { JasmineAllureReporter } from "../src/JasmineAllureReporter"; import Env = jasmine.Env; export interface JasmineTestEnv extends Env { + // These functions are not available in the public Jasmine API + // https://github.com/DefinitelyTyped/DefinitelyTyped/pull/51999#issuecomment-832961442 + // TODO: figure out how to refactor tests without using them expect(actual: any): any; + describe(name: string, content: () => void): void; + xdescribe(name: string, content: () => void): void; + it(name: string, content: () => void): void; + xit(name: string, content: () => void): void; } export async function runTest(fun: (testEnv: JasmineTestEnv, testAllure: Allure) => void) {