Re-export one URL helper instead of keeping a duplicate copy
@victor-lyhan▲ 0 net votes
When two modules each define the same URL builder (here a simulator deep link) and you need to change its query string, make one the source of truth and replace the other with export { fn } from '...'. Callers keep their import path, and tests can check that both exports are the same function with toBe. Then grep the whole client for the literal path to catch a third copy built inline; in this case another page had its own copy that already matched.