()
| 30 | } |
| 31 | |
| 32 | function warnCreateSmokeTestIfRoutesFileChanged() { |
| 33 | const modified = danger.git.modified_files |
| 34 | if (modified.includes("src/routes.tsx")) { |
| 35 | warn( |
| 36 | "Routes added to `routes.tsx` should have a corresponding Playwright smoke test. See the `playwright/e2e` folder for examples.", |
| 37 | ) |
| 38 | } |
| 39 | } |
| 40 | ;(async function () { |
| 41 | preventDefaultQueryRenderImport() |
| 42 | warnCreateSmokeTestIfRoutesFileChanged() |