Skip to content

Commit

Permalink
Update Readme example to not let karma watch files(#95)
Browse files Browse the repository at this point in the history
* 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: #44 (comment)

* Removed array wrapping and default options

* Removed extra colon
  • Loading branch information
rogeriochaves authored and joshwiens committed Aug 3, 2016
1 parent 60dca69 commit 04719d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
],

Expand Down Expand Up @@ -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.

0 comments on commit 04719d4

Please sign in to comment.