Skip to content

Commit f66b87c

Browse files
authored
enhancement: offer advice when unmatched English pages are detected (#22893)
1 parent 15315c6 commit f66b87c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/unit/pages.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ describe('pages module', () => {
165165
.value()
166166

167167
const diff = difference(nonEnglishPaths, englishPaths)
168-
const failureMessage = `Unmatched non-English pages ${diff.length}:\n - ${diff.join('\n - ')}`
168+
const failureMessage = `
169+
Found ${diff.length} non-English pages without a matching English page:\n - ${diff.join('\n - ')}
170+
171+
Remove them with script/i18n/prune-stale-files.js and commit your changes using "git commit --no-verify".
172+
`
169173
expect(diff.length, failureMessage).toBe(0)
170174
})
171175
})

0 commit comments

Comments
 (0)