Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Make css bundle assertion work also for turbopack (#62127)
### What? Fix one assertion about CSS files emitted by turbopack. ### Why? Turbopack generates `/_next/static/chunks/2225ce._.css`, which does not match the regex. Note that it has `._.css`. The previous assertions match on `[^.]+\.css`, which does not support two dots in the file name. I tried `/<link rel="stylesheet" href=".+\.css(\?v=\d+)?"/g`, but it captured 3 `link` tags at once. So I used `/<link rel="stylesheet" href="[^<]+\.css(\?v=\d+)?"/g`. ### How? Closes PACK-2413
- Loading branch information