Skip to content

Commit

Permalink
chore: add all changes to the project warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaisailovic committed Apr 1, 2024
1 parent b4af55e commit a09c6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dangerfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
}
Expand Down

0 comments on commit a09c6ad

Please sign in to comment.