Files
discordeno/packages/bot/tests/e2e/resetguilds.spec.ts
Fleny f199bbf71c build(dev-deps): Update biome to v2 (#4246)
* update biome to v2

* Run biome check --write

* Update biome.jsonc

Co-authored-by: Link <lts20050703@gmail.com>

* Fix config error

* Bump biome version

* Update website/yarn.lock

* Update biome to 2.1.3

---------

Co-authored-by: Link <lts20050703@gmail.com>
2025-08-09 12:45:04 -05:00

23 lines
499 B
TypeScript

import { delay } from '@discordeno/utils'
import { use as chaiUse } from 'chai'
import chaiAsPromised from 'chai-as-promised'
import { describe, it } from 'mocha'
import { createBot } from '../../src/bot.js'
import { token } from './constants.js'
chaiUse(chaiAsPromised)
describe('[Bot] Can start and stop the bot', () => {
it('Start and stop the bot', async () => {
const bot = createBot({
token,
})
await bot.start()
await delay(5000)
await bot.shutdown()
})
})