Skip to content

Commit

Permalink
test: Ignore local environment setup
Browse files Browse the repository at this point in the history
Local environment setup configuration is intended for the development
workflow. Applying it to the testing environment produced unexpected
outcomes where one's local configuration can cause tests to fail
unexpectedly.
  • Loading branch information
dcalhoun committed Oct 10, 2023
1 parent d564bc9 commit 4e111a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-editor/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const registerGutenberg = ( {
this.editorComponent = setup();

// Apply optional setup configuration, enabling modification via hooks.
if ( typeof require.context === 'function' ) {
if ( __DEV__ && typeof require.context === 'function' ) {
const req = require.context( './', false, /setup-local\.js$/ );
req.keys().forEach( ( key ) => req( key ).default() );
}
Expand Down

0 comments on commit 4e111a0

Please sign in to comment.