tests: use node:test #210

Merged
Anri merged 4 commits from node-test into main 2024-12-14 11:43:10 +01:00
7 changed files with 7 additions and 7 deletions
Showing only changes of commit d8fb65f583 - Show all commits

View file

@ -1,4 +1,4 @@
import "../../modules/string";
import "../../src/modules/string";
import { describe, it } from "node:test";
import assert from "node:assert/strict";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -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";

View file

@ -103,5 +103,5 @@
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["./**/*.ts", "./src/locales/*.json"],
"exclude": ["./src/tests"]
"exclude": ["tests"]
}