From d8fb65f58338f39fa99f4260adb1b3b951bd4677 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 10 Dec 2024 10:24:55 +0100 Subject: [PATCH] move tests to parent --- {src/tests => tests}/modules/string.test.ts | 2 +- {src/tests => tests}/utils/commands/reminder.test.ts | 2 +- {src/tests => tests}/utils/events/citation.test.ts | 2 +- {src/tests => tests}/utils/misc.test.ts | 2 +- {src/tests => tests}/utils/regex.test.ts | 2 +- {src/tests => tests}/utils/time.test.ts | 2 +- tsconfig.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename {src/tests => tests}/modules/string.test.ts (95%) rename {src/tests => tests}/utils/commands/reminder.test.ts (90%) rename {src/tests => tests}/utils/events/citation.test.ts (98%) rename {src/tests => tests}/utils/misc.test.ts (99%) rename {src/tests => tests}/utils/regex.test.ts (92%) rename {src/tests => tests}/utils/time.test.ts (98%) diff --git a/src/tests/modules/string.test.ts b/tests/modules/string.test.ts similarity index 95% rename from src/tests/modules/string.test.ts rename to tests/modules/string.test.ts index cd73a2a..b31def9 100644 --- a/src/tests/modules/string.test.ts +++ b/tests/modules/string.test.ts @@ -1,4 +1,4 @@ -import "../../modules/string"; +import "../../src/modules/string"; import { describe, it } from "node:test"; import assert from "node:assert/strict"; diff --git a/src/tests/utils/commands/reminder.test.ts b/tests/utils/commands/reminder.test.ts similarity index 90% rename from src/tests/utils/commands/reminder.test.ts rename to tests/utils/commands/reminder.test.ts index 5629d68..511e3c7 100644 --- a/src/tests/utils/commands/reminder.test.ts +++ b/tests/utils/commands/reminder.test.ts @@ -1,4 +1,4 @@ -import { OptionReminder, splitTime } from "../../../utils/commands/reminder"; +import { OptionReminder, splitTime } from "../../../src/utils/commands/reminder"; import { describe, it } from "node:test"; import assert from "node:assert/strict"; diff --git a/src/tests/utils/events/citation.test.ts b/tests/utils/events/citation.test.ts similarity index 98% rename from src/tests/utils/events/citation.test.ts rename to tests/utils/events/citation.test.ts index c78d6f6..82317b7 100644 --- a/src/tests/utils/events/citation.test.ts +++ b/tests/utils/events/citation.test.ts @@ -1,5 +1,5 @@ import { Attachment, Collection, EmbedBuilder } from "discord.js"; -import { handleAttachments } from "../../../utils/events/citation"; +import { handleAttachments } from "../../../src/utils/events/citation"; import { describe, it } from "node:test"; import assert from "node:assert/strict"; diff --git a/src/tests/utils/misc.test.ts b/tests/utils/misc.test.ts similarity index 99% rename from src/tests/utils/misc.test.ts rename to tests/utils/misc.test.ts index 3108b6d..ec943ab 100644 --- a/src/tests/utils/misc.test.ts +++ b/tests/utils/misc.test.ts @@ -4,7 +4,7 @@ import { isImage, removeExtension, splitFilenameExtensions, -} from "../../utils/misc"; +} from "../../src/utils/misc"; import { describe, it } from "node:test"; import assert from "node:assert/strict"; diff --git a/src/tests/utils/regex.test.ts b/tests/utils/regex.test.ts similarity index 92% rename from src/tests/utils/regex.test.ts rename to tests/utils/regex.test.ts index b27a55a..0995166 100644 --- a/src/tests/utils/regex.test.ts +++ b/tests/utils/regex.test.ts @@ -1,4 +1,4 @@ -import { RegexC, RegExpFlags } from "../../utils/regex"; +import { RegexC, RegExpFlags } from "../../src/utils/regex"; import { describe, it } from "node:test"; import assert from "node:assert/strict"; diff --git a/src/tests/utils/time.test.ts b/tests/utils/time.test.ts similarity index 98% rename from src/tests/utils/time.test.ts rename to tests/utils/time.test.ts index d78d11a..1ef5e2a 100644 --- a/src/tests/utils/time.test.ts +++ b/tests/utils/time.test.ts @@ -4,7 +4,7 @@ import { strToSeconds, timeDeltaToString, TimeSecond, -} from "../../utils/time"; +} from "../../src/utils/time"; import { describe, it } from "node:test"; import assert from "node:assert/strict"; diff --git a/tsconfig.json b/tsconfig.json index 3d15a10..f9b1bc4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -103,5 +103,5 @@ "skipLibCheck": true /* Skip type checking all .d.ts files. */ }, "include": ["./**/*.ts", "./src/locales/*.json"], - "exclude": ["./src/tests"] + "exclude": ["tests"] }