Skip to content

Commit

Permalink
test: mock FLAG_DEMO in hook test
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Oct 9, 2024
1 parent 5dc180d commit e587267
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/__tests__/core/hook.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as hook from '@fe/core/hook'
import * as ioc from '@fe/core/ioc'

jest.mock('@fe/support/args', () => ({
FLAG_DEMO: false,
}))

jest.mock('@fe/utils', () => ({
getLogger: () => new Proxy({}, { get: () => () => 0 })
}))
Expand Down

0 comments on commit e587267

Please sign in to comment.