summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2017-12-22 11:10:22 +0000
committerTim Zallmann <tzallmann@gitlab.com>2017-12-22 11:10:22 +0000
commit46464e5fa3ff85b8240e17cb71f20fad8b70d01f (patch)
treec007131e72ad4476cf04e97422cc8bd5899e82d3
parentc88594446cbafc9917290cb778cdce6d7cd330a3 (diff)
downloadgitlab-ce-46464e5fa3ff85b8240e17cb71f20fad8b70d01f.tar.gz
Make webpack fail for missing exports
-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': [
{