add frameworks for other tests

This commit is contained in:
Aster Fialla
2026-02-23 09:00:48 -05:00
parent da79db856a
commit 0f65db2d42
3 changed files with 46 additions and 0 deletions

22
tests/bot.test.js Normal file
View File

@@ -0,0 +1,22 @@
const { Client, Events } = require('@fluxerjs/core');
const { messageHelper } = require("../src/helpers/messageHelper.js");
const {enums} = require("../src/enums.js");
const {commands} = require("../src/commands.js");
const {webhookHelper} = require("../src/helpers/webhookHelper.js");
const env = require('dotenv');
const {utils} = require("../src/helpers/utils.js");
env.config();
describe('bot', () => {
beforeEach(() => {
jest.resetModules();
jest.clearAllMocks();
})
afterEach(() => {
// restore the spy created with spyOn
jest.restoreAllMocks();
});
})

12
tests/commands.test.js Normal file
View File

@@ -0,0 +1,12 @@
describe('commands', () => {
beforeEach(() => {
jest.resetModules();
jest.clearAllMocks();
})
afterEach(() => {
// restore the spy created with spyOn
jest.restoreAllMocks();
});
})

View File

@@ -0,0 +1,12 @@
describe('importHelper', () => {
beforeEach(() => {
jest.resetModules();
jest.clearAllMocks();
})
afterEach(() => {
// restore the spy created with spyOn
jest.restoreAllMocks();
});
})