Skip to content

Commit 603ea18

Browse files
authored
fix: Import path fixed (#149)
1 parent 755736d commit 603ea18

14 files changed

+83
-81
lines changed

lib/helpers/config.helper.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
validateConfig,
55
} from "./config.helper";
66
import { mocked } from "ts-jest/utils";
7-
import { Config } from "types";
7+
import { Config } from "../types";
88
import * as fs from "fs";
99

1010
jest.mock("fs");

lib/helpers/config.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { existsSync, readFileSync } from "fs";
2-
import { Config } from "types";
2+
import { Config } from "../types";
33

44
const CONFIG_FILE_PATH = "./vrt.json";
55

lib/helpers/dto.helper.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { multipartDtoToFormData, bufferDtoToFormData } from "./index";
2-
import { TestRunBufferDto, TestRunMultipartDto } from "types/request";
2+
import { TestRunBufferDto, TestRunMultipartDto } from "../types";
33
import { mocked } from "ts-jest/utils";
44
import * as fs from "fs";
55

lib/helpers/dto.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import FormData from "form-data";
22
import fs from "fs";
3-
import { TestRunMultipartDto, TestRunBufferDto } from "types/request";
3+
import { TestRunMultipartDto, TestRunBufferDto } from "../types";
44

55
export const multipartDtoToFormData = (dto: TestRunMultipartDto): FormData => {
66
const data = new FormData();

lib/helpers/type.helper.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TestRunBase64, TestRunMultipart } from "types";
1+
import { TestRunBase64, TestRunMultipart } from "../types";
22
import { instanceOfTestRunBase64 } from "./index";
33

44
describe("instanceOfTestRunBase64", () => {

lib/helpers/type.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TestRunBase64, TestRunBuffer } from "types";
1+
import { TestRunBase64, TestRunBuffer } from "../types";
22

33
export function instanceOfTestRunBase64(object: any): object is TestRunBase64 {
44
return "imageBase64" in object;

lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from "./visualRegressionTracker";
22
export * from "./testRunResult";
33
export * from "./types";
4+
export * from "./helpers";

lib/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export * from "./config";
22
export * from "./testRun";
3+
export * from "./request";
34
export * from "./response/buildResponse";
45
export * from "./response/testRunResponse";
56
export * from "./testStatus";

lib/types/request/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from "./testRunBase64.dto";
22
export * from "./testRunMultipart.dto";
3-
export * from "./testRunBuffer.dto";
3+
export * from "./testRunBuffer.dto";

lib/types/request/testRun.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IgnoreArea } from "types/ignoreArea";
1+
import { IgnoreArea } from "../../types/ignoreArea";
22

33
export interface TestRunDto {
44
name: string;

0 commit comments

Comments
 (0)