Skip to content

Commit

Permalink
Merge pull request #3011 from wordpress-mobile/dependency/bump-jetpac…
Browse files Browse the repository at this point in the history
…k-669e9ad

Bump Jetpack submodule and fix break changes
  • Loading branch information
cameronvoell authored Jan 16, 2021
2 parents 32defd7 + a64bb0e commit 8e3400c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"videopress",
"wordads"
],
"beta": [ "amazon" ],
"beta": [ "amazon", "anchor-fm", "conversation", "dialogue" ],
"experimental": [ "seo" ],
"no-post-editor": [
"business-hours",
Expand Down
2 changes: 1 addition & 1 deletion jetpack
Submodule jetpack updated 3236 files
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"yarn": "^1.22.10"
},
"scripts": {
"postinstall": "npm ci --prefix gutenberg && cd jetpack && yarn install --frozen-lockfile --ignore-engines",
"postinstall": "npm ci --prefix gutenberg && cd jetpack/projects/plugins/jetpack && yarn install --frozen-lockfile --ignore-engines",
"start": "react-native start --config ./metro.config.js",
"start:reset": "npm run core clean:runtime && npm run start -- --reset-cache",
"core": "cd gutenberg && npm run native",
Expand Down
4 changes: 2 additions & 2 deletions src/jetpack-editor-setup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Internal dependencies
*/
import { JETPACK_DATA_PATH } from '../jetpack/extensions/shared/get-jetpack-data';
import { JETPACK_DATA_PATH } from '../jetpack/projects/plugins/jetpack/extensions/shared/get-jetpack-data';
/**
* WordPress dependencies
*/
Expand Down Expand Up @@ -64,7 +64,7 @@ export default ( jetpackState ) => {
}
} );

require( '../jetpack/extensions/editor' );
require( '../jetpack/projects/plugins/jetpack/extensions/editor' );

return jetpackData;
};
7 changes: 4 additions & 3 deletions src/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ describe( 'Test Jetpack blocks', () => {
};
} );
jest.mock(
'../../jetpack/extensions/blocks/contact-info/editor.js',
'../../jetpack/projects/plugins/jetpack/extensions/blocks/contact-info/editor.js',
() => jest.fn()
);
jest.mock( '../../jetpack/extensions/blocks/story/editor.js', () =>
jest.fn()
jest.mock(
'../../jetpack/projects/plugins/jetpack/extensions/blocks/story/editor.js',
() => jest.fn()
);

const setupJetpackEditor = require( '../jetpack-editor-setup' ).default;
Expand Down

0 comments on commit 8e3400c

Please sign in to comment.