【发布时间】:2020-03-22 02:05:45
【问题描述】:
在库中设置原理图时,您最终会得到如下结构:
library
-schematics
--update
---index.spec.ts
-src
--test.ts
当嵌套的test.ts 在其自身或其下方搜索测试时,我将如何设置 index.spec.ts 以与库测试一起运行:
const context = require.context('./', true, /\.spec\.ts$/);
查找文件夹崩溃。
不幸的是,稀疏的原理图文档跳过了测试(几乎所有其他可能有用的东西)。 https://angular.io/guide/schematics-for-libraries
【问题讨论】:
标签: angular angular-test angular-schematics