Skip to content

Commit

Permalink
test: Ignore local environment setup (#55172)
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 authored Oct 10, 2023
1 parent d564bc9 commit 8860495
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

1 comment on commit 8860495

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 8860495.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6470265231
📝 Reported issues:

Please sign in to comment.