From 04719d440fbf199f224f1cdc10bd7b9d69f498d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rog=C3=A9rio=20Chaves?= Date: Wed, 3 Aug 2016 03:26:55 -0300 Subject: [PATCH] Update Readme example to not let karma watch files(#95) * Do not let karma watch files This prevents specs from running twice every time a file changes, because the webpack already triggers a rerun when recompiled. Thanks to this comment: https://github.com/webpack/karma-webpack/issues/44#issuecomment-133619802 * Removed array wrapping and default options * Removed extra colon --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 78067dd..e8eb247 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ module.exports = function(config) { // ... normal karma configuration files: [ // all files ending in "_test" - 'test/*_test.js', - 'test/**/*_test.js' + {pattern: 'test/*_test.js', watched: false}, + {pattern: 'test/**/*_test.js', watched: false} // each file acts as entry point for the webpack configuration ], @@ -227,4 +227,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -