Skip to content

Commit

Permalink
fix: moving test files to root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
barbmarcio committed Jul 16, 2024
1 parent a106984 commit 244ea46
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { afterAll, afterEach, beforeAll, describe, expect, it, jest } from "bun:test";
import { apis, baseURL } from "../constants/apis.constant";
import { afterEach, beforeAll, describe, expect, it } from "bun:test";
import { createAuction } from "../src";
import { apis, baseURL } from "../src/constants/apis.constant";
import {
mswServer,
returnAuctionSuccess,
returnError,
returnStatus,
} from "../constants/handlers.constant";
import { createAuction } from "../functions/create-auction";
import type { TopsortAuction } from "../interfaces/auctions.interface";
import AppError from "../lib/app-error";
} from "../src/constants/handlers.constant";
import type { TopsortAuction } from "../src/interfaces/auctions.interface";
import AppError from "../src/lib/app-error";

describe("createAuction", () => {
beforeAll(() => mswServer.listen());
Expand Down
11 changes: 5 additions & 6 deletions src/tests/report-event.test.ts → tests/report-event.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { afterAll, afterEach, beforeAll, describe, expect, it, jest } from "bun:test";
import { apis, baseURL } from "../constants/apis.constant";
import { mswServer, returnError, returnStatus } from "../constants/handlers.constant";
import { reportEvent } from "../functions/report-event";
import type { TopsortEvent } from "../interfaces/events.interface";
import AppError from "../lib/app-error";
import { afterEach, beforeAll, describe, expect, it } from "bun:test";
import { type TopsortEvent, reportEvent } from "../src";
import { apis, baseURL } from "../src/constants/apis.constant";
import { mswServer, returnError, returnStatus } from "../src/constants/handlers.constant";
import AppError from "../src/lib/app-error";

describe("reportEvent", () => {
beforeAll(() => mswServer.listen());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Config } from "../interfaces/shared.interface";
import { validateConfig } from "../lib/validate-config";

import AppError from "../lib/app-error";
import type { Config } from "../src/interfaces/shared.interface";
import AppError from "../src/lib/app-error";
import { validateConfig } from "../src/lib/validate-config";

describe("validateConfig", () => {
it("should throw an error if apiKey is missing", () => {
Expand Down

0 comments on commit 244ea46

Please sign in to comment.