SIGN IN SIGN UP
payloadcms / payload UNCLAIMED

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.

0 0 16 TypeScript

test: make integration tests for the `fields` and `select` suites faster (#15434)

We were restarting and seeding the database in each test. By removing
the `beforeEach` statement, a handful of tests required refactoring to
avoid conflicts with others.

| Suite | Before | After | Improvement | Change |
|-------|--------|-------|-------------|--------|
| **fields** | 11m 22s | ~60s | 91.2% | `beforeEach` seed → `beforeAll`
seed |
| **select** | 4m 3s | ~9s | 96.3% | `beforeEach` create → `beforeAll`
create |
| **TOTAL** | **15m 25s** | **~69s** | **92.5%** | **13.4x faster** |

### Time Saved Per Test Run
- **14 minutes 16 seconds** saved on every test execution
- **From ~3.56s per test → ~0.26s per test** (average across both
suites)
G
German Jablonski committed
26ba77945d5823ebf9099cbb354b9fbc2545383d
Parent: 2dc2e7c
Committed by GitHub <noreply@github.com> on 1/30/2026, 3:20:22 PM