Angular 单元测试有什么问题吗

问题描述

我正在学习角度测试并编写简单的测试代码,但它显示了其中的错误。在我的应用程序文件夹中,我创建了一个包含以下代码的 test.spect.ts 文件

describe('app',()=>{
    it('should display original title',() => {
    expect(true).toBe(true);
  });
});

使用 ng test 我试图运行代码,但出现错误

is not digitally about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ ng test
+ ~~
    + CategoryInfo          : SecurityError: (:) [],PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

请帮助我正处于学习阶段。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)