Create `src/retry.js` exporting an async `retry(fn, attempts)` that calls `fn` until it succeeds or `attempts` is exhausted, then rethrows the last error. The test uses a function that fails twice before succeeding.