ci: Use mocha for both deno and bun (#4067)

* Use mocha for both deno and bun

* Use any Bun 1.1

* remove build:type dependency in lib-check.yml

* Pin point 1.1.42

* remove packages/bot/.mocharc.json
This commit is contained in:
Fleny
2025-01-01 09:59:06 -08:00
committed by GitHub
parent f2f7f111fb
commit b0c1b9f795
25 changed files with 106 additions and 195 deletions
-2
View File
@@ -15,14 +15,12 @@ describe('bucket.ts', () => {
let clock: sinon.SinonFakeTimers
beforeEach(() => {
console.log('before')
clock = sinon.useFakeTimers()
})
afterEach(() => {
sinon.restore()
clock.restore()
console.log('after')
})
describe('LeakyBucket function', () => {
+1 -1
View File
@@ -7,7 +7,7 @@ describe('urlToBase64.ts', () => {
let fetchStub: sinon.SinonStub
beforeEach(() => {
fetchStub = sinon.stub(typeof global !== 'undefined' ? global : window, 'fetch')
fetchStub = sinon.stub(globalThis, 'fetch')
})
afterEach(() => {