mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 01:44:13 +00:00
ci(client): lint:size measures the Playwright specs and fixtures too
The size check walked src/ and tests/ only, while lint:format and lint:skips already cover e2e/. The help center fixtures under e2e/help/fixtures.ts hold 2291 wrapped lines, past the 2000 a test may reach, and could grow without bound. e2e/ is now measured with the test limit; fixtures.ts enters the baseline at its current size, every other file there is within the limit.
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* A file past a thousand lines holds several concerns that no longer fit in
|
||||
* one reading, and every change to one of them risks the others. Each source
|
||||
* file and stylesheet under src/ may hold 1000 lines, each test (under tests/
|
||||
* or a co-located *.test.*) 2000. Lines are counted as an editor wraps them
|
||||
* file and stylesheet under src/ may hold 1000 lines, each test (under tests/,
|
||||
* a Playwright spec or fixture under e2e/, or a co-located *.test.*) 2000. Lines are counted as an editor wraps them
|
||||
* at 120 columns, so joining lines does not make a file smaller. The files
|
||||
* that were already larger are listed in scripts/size-baseline.json with the
|
||||
* size they had, and the check fails when one of them grows past its entry. A
|
||||
|
||||
Reference in New Issue
Block a user