mocha-webpack

    1熱度

    1回答

    我正在建設一個項目,使用mocha-webpack來測試一個Angular 2項目,我試圖使用伊斯坦布爾的命令行(nyc)添加覆蓋項目,但我可以我們不知道如何讓伊斯坦布爾在點擊html報告時正確顯示所涵蓋的來源。我的配置中是否存在某些內容?我是否需要使用Babel/Karma才能正確映射這些? webpack.js var webpack = require('webpack'); var he

    1熱度

    1回答

    如何從運行中排除node_modules? 我認爲webpack-node-externals註定了這個任務。這是我的webpack.test-config.js: const nodeExternals = require('webpack-node-externals'); const config = {}; // in order to ignore built-in modules

    1熱度

    1回答

    我想在npm腳本中使用mocha-webpack來測試vuejs組件。我嘲笑vuex店這樣的試驗: const vm = new Vue({ template: '<div><test></test></div>', store: new Vuex.Store(mockedStore), components: { 'test': TestItem