diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-12-22 11:12:47 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-12-22 11:12:47 +0000 |
commit | fe9bcd4875b9447a80a7f24cfe94f051956fae72 (patch) | |
tree | 52461522759967f42ba496a8f9d3413daf200069 | |
parent | ebe56caf6c8577ae56eb43e05946a3911fd6ba4a (diff) | |
parent | 46464e5fa3ff85b8240e17cb71f20fad8b70d01f (diff) | |
download | gitlab-ce-fe9bcd4875b9447a80a7f24cfe94f051956fae72.tar.gz |
Merge branch 'winh-fail-missing-export' into 'master'
Make webpack fail for missing exports
See merge request gitlab-org/gitlab-ce!16005
-rw-r--r-- | config/webpack.config.js | 1 | ||||
-rw-r--r-- | spec/javascripts/monitoring/mock_data.js | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 1218b0ef208..5f95255334c 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -141,6 +141,7 @@ var config = { ], noParse: [/monaco-editor\/\w+\/vs\//], + strictExportPresence: true, }, plugins: [ diff --git a/spec/javascripts/monitoring/mock_data.js b/spec/javascripts/monitoring/mock_data.js index 1f4e858e731..2bbe963e393 100644 --- a/spec/javascripts/monitoring/mock_data.js +++ b/spec/javascripts/monitoring/mock_data.js @@ -1,6 +1,8 @@ /* eslint-disable quote-props, indent, comma-dangle */ -const metricsGroupsAPIResponse = { +export const mockApiEndpoint = `${gl.TEST_HOST}/monitoring/mock`; + +export const metricsGroupsAPIResponse = { 'success': true, 'data': [ { |