2025-04-24 13:11:28 +08:00

14 lines
366 B
JavaScript

import chai from 'chai'
import sinonChai from 'sinon-chai'
import chaiAsPromised from 'chai-as-promised'
import mongodb from 'mongodb-legacy'
const { ObjectId } = mongodb
// ensure every ObjectId has the id string as a property for correct comparisons
ObjectId.cacheHexString = true
// Chai configuration
chai.should()
chai.use(sinonChai)
chai.use(chaiAsPromised)