Skip to content

Commit

Permalink
fix: make test run on github ci server
Browse files Browse the repository at this point in the history
  • Loading branch information
yubaoquan committed May 2, 2024
1 parent f9984f5 commit 7c6c724
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tests/async.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { assert } from 'chai'
import * as _ from '..'
import { AggregateError } from '../async'

// fix error of calling useFakeTimers https://stackoverflow.com/a/77694958/5131623
Object.defineProperty(global, 'performance', {
writable: true
})
// fix error of calling useFakeTimers on nodejs version v20.12.1 https://stackoverflow.com/a/77694958/5131623
// Object.defineProperty(global, 'performance', {
// writable: true
// })

describe('async module', () => {
beforeEach(() => jest.useFakeTimers({ advanceTimers: true }))
Expand Down

0 comments on commit 7c6c724

Please sign in to comment.