-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5544 from wordpress-mobile/fix/jest-29
Update to Jest 29
- Loading branch information
Showing
5 changed files
with
9,107 additions
and
7,404 deletions.
There are no files selected for viewing
Submodule gutenberg
updated
86 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Jetpack mocks | ||
|
||
// Copied from https://github.com/Automattic/jetpack/blob/trunk/projects/js-packages/connection/jest.setup.js | ||
global.window.JP_CONNECTION_INITIAL_STATE = { | ||
userConnectionData: { | ||
currentUser: { | ||
wpcomUser: { | ||
Id: 99999, | ||
login: 'bobsacramento', | ||
display_name: 'Bob Sacrmaneto', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
jest.mock( | ||
'./jetpack/projects/js-packages/shared-extension-utils/index.js', | ||
() => ( { | ||
__esModule: true, | ||
...jest.requireActual( | ||
'./jetpack/projects/js-packages/shared-extension-utils/index.js' | ||
), | ||
getHostAppNamespace: jest.fn(), | ||
} ) | ||
); |
Oops, something went wrong.