Skip to content

Commit

Permalink
test: fix tests building
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Dec 6, 2023
1 parent 6d6ba05 commit fc00f1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/unit/lib/test-adapter/hermione.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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>): HermioneTestResult => _.defaults(result, {
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]
}
},
}

0 comments on commit fc00f1c

Please sign in to comment.