packages/cli: clarify jest module mapper config

This commit is contained in:
Patrik Oldsberg
2020-05-18 11:44:52 +02:00
parent 26e259d7bd
commit 9b3e7b345d
+1
View File
@@ -37,6 +37,7 @@ async function getConfig() {
// To avoid having to build all deps inside the monorepo before running tests,
// we point directory to src/ where applicable.
// For example, @backstage/core = <repo-root>/packages/core/src/index.ts is added to moduleNameMapper
for (const pkg of packages) {
const mainSrc = pkg.get('main:src');
if (mainSrc) {