Skip to content

Latest commit

 

History

History

globl

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

globl npm

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)