Currently, when data is unable to be resolved from our globals (usually only in tests where it isn't manually received), we log an error to the console.
However, this does not cause tests to fail where it should. We should make this throw an error, but only in development to make sure these things cause tests to fail as expected.
_Do not alter or remove anything below. The following sections will be managed by moderators only._
throwOnError feature flag which is only enabled in developmentconsole.error is currently only called to conditionally throw an Error instead of calling console.errorconsole.error should still be called if the feature flag is false (i.e. production)throwOnError.enabled key to webpack.feature-flags.config.jsconsole behaviorglobal.featureFlags in tests/js/setup-globals.js since Jest does not use Webpack, the plugin has to be "loaded" manually@aaemnnosttv Do we need to make this change? With #1770 such logs should make the tests fail already.
@felixarntz in that case, I suppose we don't need to change this. We can revisit this after that issue if needed 馃憤
Removing this from the milestone since it may not be necessary - let's wait for #1770 to see whether it is.
@aaemnnosttv I believe this is no longer relevant? I'll close it for now.