mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
fix(tests): add benchmark test
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { memoryBenchmarks } from "../../benchmarks/index.ts";
|
||||
import enableCachePlugin from "../../plugins/cache/mod.ts";
|
||||
import { loadBot } from "../mod.ts";
|
||||
|
||||
Deno.test({
|
||||
name: "[Memory] Benchmark memory tests",
|
||||
fn: async (t) => {
|
||||
const bot = enableCachePlugin(loadBot());
|
||||
|
||||
await memoryBenchmarks(bot, {
|
||||
log: true,
|
||||
table: true,
|
||||
});
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user