summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-12-22 11:12:47 +0000
committerTim Zallmann <tzallmann@gitlab.com>2017-12-22 11:12:47 +0000
commitfe9bcd4875b9447a80a7f24cfe94f051956fae72 (patch)
tree52461522759967f42ba496a8f9d3413daf200069
parentebe56caf6c8577ae56eb43e05946a3911fd6ba4a (diff)
parent46464e5fa3ff85b8240e17cb71f20fad8b70d01f (diff)
downloadgitlab-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.js1
-rw-r--r--spec/javascripts/monitoring/mock_data.js4
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': [
{