Practitioner (own blog/paper) Test migration
Airbnb migrates ~3.5K Enzyme test files to React Testing Library in 6 weeks with LLMs
Airbnb built a per-file, state-machine migration pipeline with validation steps (Jest, lint, tsc), retry loops and prompts of 40K–100K tokens. 75% of files migrated in the first 4-hour bulk run; 4 days of 'sample, tune, sweep' reached 97%; the rest were fixed by hand in about another week.
The numbers (as reported)
| Test files migrated | ~3,500 |
|---|---|
| Actual duration | 6 weeks |
| Manual estimate | 1.5 years of engineering time |
| Auto-migrated in first bulk run | 75% in 4 hours |
| After 4 days of prompt tuning | 97% |
| Prompt size | 40,000–100,000 tokens |
Facts
- Company / subject
- Airbnb
- Tools
- Unstated
- Codebase
- brownfield
- Work type
- Test migration
- Stack
- React, TypeScript, Enzyme, React Testing Library, Jest
- Published
- 2025-03
- Last checked
- 2026-10-17
What the source claims Practitioner (own blog/paper)
Claimed by the builder, writing about their own work. Not checked independently.
- About 3,500 test files migrated in 6 weeks, against an estimate of 1.5 years of engineering time by hand 6 weeks vs 1.5 years
“We’d originally estimated this would take 1.5 years of engineering time to do by hand, but — using a combination of frontier models and robust automation — we finished the entire migration in just 6 weeks.”
- 75% of target files migrated automatically in the first four-hour bulk run 75% in 4 hours
“we successfully migrated 75% of our target files in just four hours”
- 97% migrated after four days of prompt and script tuning 97%
“After four days of prompt and script refinement using the “sample, tune, and sweep” strategy, we reached 97% of the 3.5K original Enzyme files.”
Caveats
Model names and dollar cost not disclosed. Published date is approximate (March 2025, per InfoQ coverage).
More stories by tool: Unstated
Related topics: Test migrationsBrownfield codebases