globl
v0.3.0
Published
Exported globals it would be nice to mock
Downloads
285,200
Readme
globl
Exported globals it would be nice to mock.
setTimeout
clearTimeout
setInterval
clearInterval
setImmediate
clearImmediate
requestAnimationFrame
cancelAnimationFrame
console
process
Date
performance
Install
$ yarn add globl
Usage
import { setTimeout } from 'globl'
setTimeout(() => {
console.log('Time\'s up')
}, 1000)