Skip to content

chrisvanpatten/wp-scripts-unit-test-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$ git clone git@github.com:chrisvanpatten/wp-scripts-unit-test-case.git
$ cd wp-scripts-unit-test-case
$ nvm use
$ npm install
$ npm run test
 FAIL  src/index.test.js
  ● Test suite failed to run

    TypeError: Cannot read property 'AsyncModeProvider' of undefined

       6 |   const module = jest.requireActual("@wordpress/data");
       7 |
    >  8 |   return {
         |   ^
       9 |     ...module,
      10 |     useSelect: jest.fn().mockReturnValue({}),
      11 |   };

      at Object.get [as AsyncModeProvider] (node_modules/@wordpress/data/build/index.js:11:31)
      at src/index.test.js:8:3

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published