Commit 1e93622b authored by Eric Eastwood's avatar Eric Eastwood
Browse files

WIP: Debugging typerrors

parent 303c39c0
......@@ -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) {
......
......@@ -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(() => {
......
......@@ -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();
......
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment