From 9f09bfd2ae87667d6210c102f4e8e926036ca65c Mon Sep 17 00:00:00 2001 From: Victor Nakoryakov Date: Tue, 2 Aug 2016 16:01:51 +0300 Subject: [PATCH] chore(test): add source map support for mocha --- mocha-webpack.opts | 1 + package.json | 1 + webpack/base.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mocha-webpack.opts b/mocha-webpack.opts index 9c0f60ff..62045a74 100644 --- a/mocha-webpack.opts +++ b/mocha-webpack.opts @@ -1,2 +1,3 @@ --colors --webpack-config webpack/test.js +--require source-map-support/register diff --git a/package.json b/package.json index e84edee9..548ead9f 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "redux-devtools-filterable-log-monitor": "^0.6.6", "redux-mock-store": "^1.1.1", "sass-loader": "^4.0.0", + "source-map-support": "^0.4.2", "wallaby-webpack": "0.0.22", "webpack-dev-server": "^1.14.0", "webpack-merge": "^0.14.0", diff --git a/webpack/base.js b/webpack/base.js index f8211158..edc32d10 100644 --- a/webpack/base.js +++ b/webpack/base.js @@ -3,7 +3,7 @@ const webpack = require('webpack'); const CopyWebpackPlugin = require('copy-webpack-plugin'); module.exports = { - devtool: 'inline-source-map', + devtool: 'source-map', entry: [ 'babel-polyfill', './app/index.jsx',