zl程序教程

您现在的位置是:首页 >  其他

当前栏目

SAP Spartacus的单元测试目录结构

SAP 结构 目录 Spartacus 单元测试
2023-09-14 09:02:55 时间

启动单元测试的命令:

yarn test:core:lib // running all of the unit tests - they need to be green, so you can push the changes easily

projects下面的core和storefrontlib的src文件夹下都有test.ts:

package.json里定义的test:core:lib指令:

实际上是这几个指令的总和:

"test:core:lib": "concurrently \"ng test core --code-coverage\" \"ng test storefrontlib --code-coverage\" \"ng test my-account --code-coverage\" \"ng test product --code-coverage\" \"ng test cdc --code-coverage\" \"ng test setup --code-coverage\"",
    "test:storefront:lib": "ng test storefrontlib --sourceMap --code-coverage"

要获取更多Jerry的原创文章,请关注公众号"汪子熙":