Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-12-07 06:23:32 +0300
committerEric Eastwood <contact@ericeastwood.com>2017-12-07 08:22:26 +0300
commit1e93622b0af8ce022edb464421d221ab86ce33d7 (patch)
tree6e5d7b326781e346c893895030ef2c1076b18d08
parent303c39c0e73eb86535ca283d2d7c44ff2959da8c (diff)
WIP: Debugging typerrors37619-typeerror-debugging2
-rw-r--r--config/karma.config.js2
-rw-r--r--package.json2
-rw-r--r--spec/javascripts/notes/components/issue_note_app_spec.js1
-rw-r--r--spec/javascripts/test_bundle.js7
-rw-r--r--yarn.lock4
5 files changed, 13 insertions, 3 deletions
diff --git a/config/karma.config.js b/config/karma.config.js
index e459f5cdac3..02179b899c1 100644
--- a/config/karma.config.js
+++ b/config/karma.config.js
@@ -3,6 +3,8 @@ var webpack = require('webpack');
var webpackConfig = require('./webpack.config.js');
var ROOT_PATH = path.resolve(__dirname, '..');
+console.log('now in karma.config.js');
+
// remove problematic plugins
if (webpackConfig.plugins) {
webpackConfig.plugins = webpackConfig.plugins.filter(function (plugin) {
diff --git a/package.json b/package.json
index 057cd8f7bc7..03d2c5037d6 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
"underscore": "^1.8.3",
"url-loader": "^0.5.8",
"visibilityjs": "^1.2.4",
- "vue": "^2.2.6",
+ "vue": "MadLittleMods/vue#debugging-vue-errors-2.2.6",
"vue-loader": "^11.3.4",
"vue-resource": "^1.3.4",
"vue-template-compiler": "^2.2.6",
diff --git a/spec/javascripts/notes/components/issue_note_app_spec.js b/spec/javascripts/notes/components/issue_note_app_spec.js
index 22e91c4c40f..7dd6c5bfa04 100644
--- a/spec/javascripts/notes/components/issue_note_app_spec.js
+++ b/spec/javascripts/notes/components/issue_note_app_spec.js
@@ -184,6 +184,7 @@ describe('issue_note_app', () => {
});
it('updates the note and resets the edit form', (done) => {
+ console.log('running test in question');
setTimeout(() => {
vm.$el.querySelector('.js-note-edit').click();
Vue.nextTick(() => {
diff --git a/spec/javascripts/test_bundle.js b/spec/javascripts/test_bundle.js
index d4e134583c7..56465040bee 100644
--- a/spec/javascripts/test_bundle.js
+++ b/spec/javascripts/test_bundle.js
@@ -11,6 +11,9 @@ const isHeadlessChrome = /\bHeadlessChrome\//.test(navigator.userAgent);
Vue.config.devtools = !isHeadlessChrome;
Vue.config.productionTip = false;
+const nonce = 9999 * Math.random();
+console.log('test_bundle.js', nonce, process.env.NODE_ENV, isHeadlessChrome, new Error().stack);
+
Vue.use(VueResource);
// enable test fixtures
@@ -48,14 +51,18 @@ const checkUnhandledPromiseRejections = (done) => {
beforeEach(done => done());
beforeAll(() => {
+ /* */
const origError = console.error;
spyOn(console, 'error').and.callFake((message) => {
+ console.log(`console error message |||${message}|||`, new Error().stack);
if (/^\[Vue warn\]/.test(message)) {
+ console.log('we found a Vue warn!!!');
fail(message);
} else {
origError(message);
}
});
+ /* */
});
const builtinVueHttpInterceptors = Vue.http.interceptors.slice();
diff --git a/yarn.lock b/yarn.lock
index 91ffbe5d4b0..5965eb67ac7 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6401,9 +6401,9 @@ vue-template-es2015-compiler@^1.2.2:
version "1.5.1"
resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.5.1.tgz#0c36cc57aa3a9ec13e846342cb14a72fcac8bd93"
-vue@^2.2.6:
+vue@MadLittleMods/vue#debugging-vue-errors-2.2.6:
version "2.2.6"
- resolved "https://registry.yarnpkg.com/vue/-/vue-2.2.6.tgz#451714b394dd6d4eae7b773c40c2034a59621aed"
+ resolved "https://codeload.github.com/MadLittleMods/vue/tar.gz/5f67bc6d27ffd35a0c46ecd45761fd31a65169c4"
vuex@^3.0.0:
version "3.0.0"