cleanup(testing): additional null-check in jest migration

Signed-off-by: AgentEnder <craigorycoppola@gmail.com>

ISSUES CLOSED: #6090
This commit is contained in:
AgentEnder 2021-06-25 15:46:30 -05:00 committed by Jason Jean
parent 013818273d
commit b873688d41

View File

@ -54,6 +54,6 @@ export default async function update(tree: Tree) {
function checkIfNodeProject(config: ProjectConfiguration) {
return Object.entries(config.targets).some(([targetName, targetConfig]) =>
targetConfig.executor.includes('node')
targetConfig.executor?.includes?.('node')
);
}