Skip to content

Commit

Permalink
mock env in updateHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
NewBieCoderXD committed Aug 22, 2024
1 parent 7682163 commit fb065b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/updateHandler.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { adminDM, client } from '@/server'
import updateHandler from '@/utils/updateHandler'
import { DiscordAPIError } from 'discord.js'

jest.mock("@/env/env");
jest.mock('@/server', () => {
return {
client: {
Expand All @@ -16,7 +17,6 @@ jest.mock('@/server', () => {
},
}
})

jest.mock('@/server')
jest.mock('@/scraper/updateAll')
jest.mock('@/database/database', () => {
Expand Down

0 comments on commit fb065b8

Please sign in to comment.