[英]Could not find the implementation for builder @angular-builders/jest:run
I'm following the instruction from this article on howto use "Jest" with Angular ng test
: https://codeburst.io/angular-6-ng-test-with-jest-in-3-minutes-b1fe5ed3417c我正在按照本文中有关如何在 Angular
ng test
使用“Jest”的说明进行操作: https : //codeburst.io/angular-6-ng-test-with-jest-in-3-minutes-b1fe5ed3417c
I see the same instructions in the README for the Jest Angular8 builder here: https://github.com/just-jeb/angular-builders/tree/master/packages/jest我在 Jest Angular8 builder 的自述文件中看到了相同的说明: https : //github.com/just-jeb/angular-builders/tree/master/packages/jest
When I run ng test
I get:当我运行
ng test
我得到:
An unhandled exception occurred: Could not find the implementation for builder @angular-builders/jest:run
See "/tmp/ng-7Fpvvi/angular-errors.log" for further details.
Output from the error log is follows:错误日志的输出如下:
[error] Error: Could not find the implementation for builder @angular-builders/jest:run
at WorkspaceNodeModulesArchitectHost.resolveBuilder (/home/dheater/src/taskbox/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js:49:19)
at TestCommand.initialize (/home/dheater/src/taskbox/node_modules/@angular/cli/models/architect-command.js:134:55)
at async TestCommand.validateAndRun (/home/dheater/src/taskbox/node_modules/@angular/cli/models/command.js:124:9)
at async Object.runCommand (/home/dheater/src/taskbox/node_modules/@angular/cli/models/command-runner.js:186:24)
at async default_1 (/home/dheater/src/taskbox/node_modules/@angular/cli/lib/cli/index.js:50:31)
Versions are:版本是:
+ jest@24.9.0
+ @angular-builders/jest@7.4.4
and I see the package in node_modules/@angular_builders/jest
我在
node_modules/@angular_builders/jest
看到了这个包
Any suggestions?有什么建议?
如果您使用的是 Angular 8,请同时更新 @angular-builders/jest 的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.