Skip to content

Commit fe19437

Browse files
✨ Introduce index.ts for validators to streamline imports; update test files to reflect new import paths
1 parent ff1de68 commit fe19437

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/validators/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from "./validbot";
2+
export * from "./zod";

tests/validators/validbot.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, expect } from "vitest";
22
import { safeParse } from "valibot";
33
import { IdHelper } from "../../src";
4-
import { createValibotIdSchema } from "../../src/validators/validbot";
4+
import { createValibotIdSchema } from "../../src/validators";
55

66
describe("Valibot ID Validator", () => {
77
it("should validate ID with default options", () => {

tests/validators/zod.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect } from "vitest";
22
import { IdHelper } from "../../src";
3-
import { createZodIdSchema } from "../../src/validators/zod";
3+
import { createZodIdSchema } from "../../src/validators";
44

55
describe("Zod ID Validator", () => {
66
it("should validate ID with default options", () => {

0 commit comments

Comments
 (0)