From a09c6ade9652900aa32ab188661d460b4efedf83 Mon Sep 17 00:00:00 2001 From: Luka Isailovic Date: Mon, 1 Apr 2024 17:39:19 +0200 Subject: [PATCH] chore: add all changes to the project warning --- dangerfile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerfile.ts b/dangerfile.ts index 5c4fb1e09c..c5089a87c1 100644 --- a/dangerfile.ts +++ b/dangerfile.ts @@ -322,8 +322,8 @@ async function checkLaboratory() { const lab_files = modified_files.filter(f => f.includes('/laboratory/')) for (const f of lab_files) { const diff = await diffForFile(f) - if (f.includes('project') && diff?.removed.includes('spec')) { - warn('Testing spec changed. Some tests were removed') + if (f.includes('project') && (diff?.removed.includes('spec') || diff?.added.includes('spec'))) { + warn('Testing spec changed') } } }