简体   繁体   English

找不到 builder @angular-builders/jest:run 的实现

[英]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.

相关问题 将自定义环境参数传递给@angular-builders/custom-webpack - Pass custom environment parameters to @angular-builders/custom-webpack 找不到构建器的实现 - Could not find implementation for builder Angular 8:运行 ng serve 时“找不到构建器的实现” - Angular 8: "could not find implementation for builder" when running ng serve Angular 项目在 scss 文件上使用 @angular-builders/custom-webpack 编译失败 - Angular Project fails compilation with @angular-builders/custom-webpack on scss files Angular 使用@angular-builders/custom-webpack 将 v13 迁移到 v14 - Angular migration v13 to v14 using @angular-builders/custom-webpack 如何使用带有 angular-builder 的自定义 webpack 将整个目录复制到 dist/ 中? - How do I copy an entire directory into dist/ using custom webpack with angular-builders? 发生未处理的异常:找不到 builder @angular-devkit/build-angular:dev-server 的实现 - An unhandled exception occurred: Could not find the implementation for builder @angular-devkit/build-angular:dev-server 依次运行 angular 自定义构建器 - Run angular custom builders in sequence 由于“找不到构建器的实现”,ng build 和 ng serve 无法正常工作 - ng build and ng serve not working due to "Could not find the implementation for builder" 使用 JEST 运行 Angular 组件测试给出找不到模块 - Using JEST to run Angular component test gives cannot find module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM