diff --git a/src/utils/fail-mode.ts b/src/utils/errors/fail-mode.ts similarity index 100% rename from src/utils/fail-mode.ts rename to src/utils/errors/fail-mode.ts diff --git a/src/utils/errors/index.ts b/src/utils/errors/index.ts index 651698d..aed9e77 100644 --- a/src/utils/errors/index.ts +++ b/src/utils/errors/index.ts @@ -1,6 +1,7 @@ export { isError } from "./error"; export { ArgumentError } from "./argument-error"; export { ArgumentNullError } from "./argument-null-error"; +export { FailMode } from "./fail-mode"; export { SoftError, isSoftError } from "./soft-error"; export { FileNotFoundError } from "./file-not-found-error"; export { HttpError, isHttpError } from "./http-error"; diff --git a/tests/unit/utils/fail-mode.spec.ts b/tests/unit/utils/errors/fail-mode.spec.ts similarity index 94% rename from tests/unit/utils/fail-mode.spec.ts rename to tests/unit/utils/errors/fail-mode.spec.ts index 5a55e1c..35936e5 100644 --- a/tests/unit/utils/fail-mode.spec.ts +++ b/tests/unit/utils/errors/fail-mode.spec.ts @@ -1,4 +1,4 @@ -import { FailMode } from "@/utils/fail-mode"; +import { FailMode } from "@/utils/errors/fail-mode"; describe("FailMode", () => { describe("parse", () => {