Skip to content

jdpearce/jest-globals-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A repo that illustrates clobbering of the globals preset with the local configuration.

To reproduce :

yarn #install dependencies
yarn test

You should see this error :

    Expected: 10
    Received: undefined

       6 |
       7 | test('expect global radix to be 10', () => {
    >  8 |   expect(global.config.radix).toBe(10);
         |                               ^
       9 | });
      10 |
      11 | test('expect PI to be 22/7', () => {

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published