mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-11 13:07:49 +01:00
Brings the repo to prettier-clean across all 525 tracked md/json/yaml files. The markdown edits are cosmetic: escaping `L*` so it stops rendering as emphasis, normalising `*em*` to `_em_`, and aligning tables. billsplit/android/gradle.properties shipped from the Flutter template asking for `-Xmx8G -XX:MaxMetaspaceSize=4G` — more than this machine has. Lowered to 768m/512m and, more importantly, cut the number of JVMs: Kotlin compiles in-process, no persistent daemon, no parallel execution, one worker. Also repairs a regression an earlier prettier pass introduced. That pass pretty-printed test/fixtures/sample_receipt.json, but `accepts bare JPK payload and bare JWS token` reads the fixture as raw TEXT with a regex matching `"data":"..."` with no space after the colon. The inserted space made the match null and the null-check operator threw. Comparing the parsed JSON for equality had passed and proved nothing about that raw-text contract. The fixture is restored to its original minified bytes — a real e-paragon arrives as single-line JSON — and test/fixtures/ is now in .prettierignore so captured payloads stay byte-faithful. The regex also tolerates whitespace now and asserts the match is non-null with a reason, so the same change would fail readably instead of crashing. Verified against both the minified and the pretty-printed fixture. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
18 lines
644 B
Plaintext
18 lines
644 B
Plaintext
# Lockfiles are tool-generated and must not be reformatted by prettier.
|
|
**/pnpm-lock.yaml
|
|
**/package-lock.json
|
|
**/yarn.lock
|
|
|
|
# Build output / vendored / generated
|
|
**/dist/
|
|
**/coverage/
|
|
node_modules/
|
|
|
|
# Captured real-world payloads used as test fixtures. These must stay
|
|
# byte-faithful to what the device or service actually emits — a real Polish
|
|
# e-paragon arrives as minified single-line JSON, and the tests read the file
|
|
# as raw text, not only as parsed JSON. Pretty-printing one silently broke
|
|
# `accepts bare JPK payload and bare JWS token`, whose regex matches
|
|
# `"data":"..."` with no space after the colon.
|
|
billsplit/test/fixtures/
|