fix(tests): add benchmark test

This commit is contained in:
Skillz4Killz
2022-05-31 14:20:11 +00:00
committed by GitHub
parent d3c1111b26
commit 873be9188d
+15
View File
@@ -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,
});
},
});