mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 10:10:08 +02:00
27 lines
471 B
JavaScript
27 lines
471 B
JavaScript
import { afterEach, beforeEach, chai, vi } from 'vitest'
|
|
import sinonChai from 'sinon-chai'
|
|
import chaiAsPromised from 'chai-as-promised'
|
|
|
|
// Setup chai
|
|
chai.should()
|
|
chai.use(sinonChai)
|
|
chai.use(chaiAsPromised)
|
|
|
|
beforeEach(() => {
|
|
vi.doMock('@overleaf/logger', () => ({
|
|
default: {
|
|
debug() {},
|
|
log() {},
|
|
info() {},
|
|
warn() {},
|
|
error() {},
|
|
err() {},
|
|
},
|
|
}))
|
|
})
|
|
|
|
afterEach(() => {
|
|
vi.restoreAllMocks()
|
|
vi.resetModules()
|
|
})
|