MCPcopy Create free account
hub / github.com/artsy/force / warnCreateSmokeTestIfRoutesFileChanged

Function warnCreateSmokeTestIfRoutesFileChanged

dangerfile.ts:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32function 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()

Callers 1

dangerfile.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected