Karma Coverage and Babel+Browserify Preprocessing
问题 I'm using Karma to test my ES6 code. When I add karma-coverage to the mix, I need to add all the source files for the coverage tool to make a useful report, but when I do that, Karma gives me this error in all browsers: PhantomJS 1.9.8 (Mac OS X 0.0.0) ERROR Error: Invariant Violation: _registerComponent(...): Target container is not a DOM element. at /var/folders/55/9_128mq95kz1q_2_vwy7qllw0000gn/T/41cf272955d73fbba8ad1df941172139.browserify:46444:0 <- ../../node_modules/react/lib/invariant