From fc00f1cdd01892021ac68d85035fef8f3d908a6e Mon Sep 17 00:00:00 2001 From: shadowusr Date: Wed, 6 Dec 2023 12:00:29 +0300 Subject: [PATCH] test: fix tests building --- test/unit/lib/test-adapter/hermione.ts | 4 ++-- tsconfig.spec.json | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/test/unit/lib/test-adapter/hermione.ts b/test/unit/lib/test-adapter/hermione.ts index 26eb7983a..153044060 100644 --- a/test/unit/lib/test-adapter/hermione.ts +++ b/test/unit/lib/test-adapter/hermione.ts @@ -4,7 +4,7 @@ import proxyquire from 'proxyquire'; import sinon from 'sinon'; import tmpOriginal from 'tmp'; -import {SKIPPED, TestStatus} from 'lib/constants/test-statuses'; +import {TestStatus} from 'lib/constants/test-statuses'; import {ERROR_DETAILS_PATH} from 'lib/constants/paths'; import {HermioneTestAdapter, HermioneTestAdapterOptions, ReporterTestResult} from 'lib/test-adapter'; import {ErrorDetails, HermioneTestResult} from 'lib/types'; @@ -30,7 +30,7 @@ describe('HermioneTestAdapter', () => { testResult: HermioneTestResult, {status = TestStatus.SUCCESS, imagesInfoFormatter = mkImagesInfoFormatter()}: {status?: TestStatus, imagesInfoFormatter?: ImagesInfoFormatter} = {} ): HermioneTestAdapter => { - return new HermioneTestAdapter(testResult, {status, imagesInfoFormatter}) as HermioneTestAdapter; + return new HermioneTestAdapter(testResult, {status, imagesInfoFormatter, attempt: 0}) as HermioneTestAdapter; }; const mkTestResult_ = (result: Partial): HermioneTestResult => _.defaults(result, { diff --git a/tsconfig.spec.json b/tsconfig.spec.json index fc10e273c..52affde5f 100644 --- a/tsconfig.spec.json +++ b/tsconfig.spec.json @@ -3,11 +3,10 @@ "include": ["lib", "test", "hermione.ts", "gemini.js", "playwright.ts"], "exclude": ["test/func"], "compilerOptions": { - "baseUrl": ".", "jsx": "react", "noEmit": true, "paths": { - "lib/*": ["lib/*"] + "lib/*": ["./lib/*"] } }, }