Angular CLI 6 未知选项:'--singleRun' [英] Angular CLI 6 Unknown option: '--singleRun'
问题描述
当我想执行我的测试时,我曾经激活了 --single-run
选项,但升级到 Angular 6 后它不再被识别.
<代码>>ng test --source-map=false --single-run --no-progress --browsers=ChromeNoSandbox
<块引用>
未知选项:'--singleRun'
Angular CLI 6 中 --single-run 的等效选项是什么?
在旧版本的 angular-cli 中,您曾经可以同时使用 --singleRun
和 --watch=false
同样的事情.现在他们删除了 --singleRun
.
你仍然可以使用 ng test --watch=false
测试将在通过 Karma 执行构建后执行,它会自动监视您的文件的更改.您可以通过 --watch=false 或 --single-run 运行一次测试.
<块引用>测试将在通过 Karma 执行构建后执行,它会自动监视您的文件的更改.您可以通过 --watch=false 运行一次测试.
When I want to execute my tests, I used to have the option --single-run
activated, but after upgrading to Angular 6 it is not recognized anymore.
> ng test --source-map=false --single-run --no-progress --browsers=ChromeNoSandbox
Unknown option: '--singleRun'
What is the equivalent option in Angular CLI 6 for --single-run ?
With older versions of angular-cli, you used to be able to use both --singleRun
and --watch=false
for the same thing. Now they removed --singleRun
.
You can still use ng test --watch=false
Tests will execute after a build is executed via Karma, and it will automatically watch your files for changes. You can run tests a single time via --watch=false or --single-run.
Tests will execute after a build is executed via Karma, and it will automatically watch your files for changes. You can run tests a single time via --watch=false.
这篇关于Angular CLI 6 未知选项:'--singleRun'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!