karma-runner/karma

Document usePolling option in karma.config.js

開放

#2,074 建立於 2016年4月28日

 (2 則留言) (0 個反應) (0 位負責人)JavaScript (1,703 個分叉)batch import
help wantedtype: docs

倉庫指標

星標
 (11,918 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Expected behavior

Seeing all available options that materially affect the test harness here

Actual behavior

I don't see usePolling; which solves the problem of auto-watching mounted source files in Docker containers; cf. this SO thread.

Enviroment Details

  • Karma version (output of karma --version): 0.13.9
  • Relevant part of your karma.config.js file
    ...
    // won't work in a Docker container
    autoWatch: true,

    autoWatchBatchDelay: 1000,

    usePolling: true,
    ...

This makes it work with the following output from docker-compose logs, e.g.

image

image

貢獻者指南