1 files changed, 0 insertions, 23 deletions
diff --git a/util/tests/setupJest.js b/util/tests/setupJest.js
deleted file mode 100644
index 35a3cb52..00000000
--- a/util/tests/setupJest.js
+++ /dev/null
@@ -1,23 +0,0 @@
-const { performance } = require("perf_hooks");
-const fs = require("fs");
-const path = require("path");
-
-// fs.unlinkSync(path.join(__dirname, "..", "database.db"));
-
-global.expect.extend({
- toBeFasterThan: async (func, target) => {
- const start = performance.now();
- var error;
- try {
- await func();
- } catch (e) {
- error = e.toString();
- }
- const time = performance.now() - start;
-
- return {
- pass: time < target && !error,
- message: () => error || `${func.name} took ${time}ms of maximum ${target}`,
- };
- },
-});
|