[{"data":1,"prerenderedAt":1735},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"wiki":116,"doc-\u002Fdocs\u002Fdecisions\u002F0032-console-output-policy":429},{"value":4,"alert":5},"18%",false,[],[8,11,14,17,20],{"label":9,"to":10},"0041 The visitor view becomes its own app, and the portal reads only as a developer platform","\u002Fdecisions\u002F0041-personal-site-splits-from-developer-portal",{"label":12,"to":13},"0040 Visitors land on the front page and toggle to the developer view","\u002Fdecisions\u002F0040-developer-portal-visitor-structure",{"label":15,"to":16},"0039 The developer portal is redesigned for visitors, from a twelve-site benchmark","\u002Fdecisions\u002F0039-developer-portal-benchmark",{"label":18,"to":19},"0038 Marina Roustan's discovery","\u002Fdecisions\u002F0038-marina-roustan-discovery",{"label":21,"to":22},"0013 New linters: the robustness gap is tsconfig and enforcement, not plugins","\u002Fdecisions\u002F0013-linter-coverage",[24,29,60,83],{"labelKey":25,"icon":26,"to":27,"badge":28},"app.menu.allProjects","i-lucide-layers","\u002Fprojects","11",{"labelKey":30,"icon":31,"to":32,"badge":33,"children":34},"app.menu.kinds.apps","i-lucide-app-window","\u002Fprojects?kind=apps","5",[35,40,45,50,55],{"label":36,"icon":31,"to":37,"badge":38,"coverage":39},"developer-portal","\u002Fprojects\u002Fdeveloper-portal","94%",94.37,{"label":41,"icon":31,"to":42,"badge":43,"coverage":44},"huella-legal","\u002Fprojects\u002Fhuella-legal","97%",97.48,{"label":46,"icon":31,"to":47,"badge":48,"coverage":49},"marina-roustan","\u002Fprojects\u002Fmarina-roustan","100%",100,{"label":51,"icon":31,"to":52,"badge":53,"coverage":54},"portfolio","\u002Fprojects\u002Fportfolio","91%",91.31,{"label":56,"icon":31,"to":57,"badge":58,"coverage":59},"wp-editor","\u002Fprojects\u002Fwp-editor","50%",49.89,{"labelKey":61,"icon":62,"to":63,"badge":64,"children":65},"app.menu.kinds.packages","i-lucide-package","\u002Fprojects?kind=packages","4",[66,71,75,80],{"label":67,"icon":62,"to":68,"badge":69,"coverage":70},"configs","\u002Fprojects\u002Fconfigs","76%",75.7,{"label":72,"icon":62,"to":73,"badge":48,"coverage":74},"content","\u002Fprojects\u002Fcontent",99.58,{"label":76,"icon":62,"to":77,"badge":78,"coverage":79},"i18n","\u002Fprojects\u002Fi18n","99%",99.08,{"label":81,"icon":62,"to":82,"badge":48,"coverage":49},"observability","\u002Fprojects\u002Fobservability",{"labelKey":84,"icon":85,"to":86,"badge":87,"children":88},"app.menu.kinds.infrastructure","i-lucide-server","\u002Fprojects?kind=infrastructure","2",[89,94],{"label":90,"icon":85,"to":91,"badge":92,"coverage":93},"scripts","\u002Fprojects\u002Fscripts","79%",78.6,{"label":95,"icon":85,"to":96,"badge":97,"coverage":98},"translations","\u002Fprojects\u002Ftranslations","93%",93.33,[100,103,106,109,112],{"label":101,"to":102},"Huella Legal","\u002Fworkflows\u002Fhuella-legal",{"label":104,"to":105},"Marina Roustan","\u002Fworkflows\u002Fmarina-roustan",{"label":107,"to":108},"Developer portal front door","\u002Fworkflows\u002Fdeveloper-portal-front-door",{"label":110,"to":111},"Huella Legal editorial","\u002Fworkflows\u002Fhuella-legal-editorial",{"labelKey":113,"icon":114,"to":115},"app.menu.newProject","i-lucide-plus","\u002Fworkflows\u002Fnew",[117,134,210,255,291,352],{"id":118,"label":119,"icon":120,"blurb":121,"groups":122},"workspace","Workspace","i-lucide-home","The two files at the root, and the generated index of everything the repo can do.",[123],{"key":124,"label":125,"entries":126},"root","The root",[127,131],{"path":128,"label":129,"kind":130},"\u002Freadme","Joinery","readme",{"path":132,"label":133,"kind":130},"\u002Fsecurity","Security policy",{"id":135,"label":136,"icon":137,"blurb":138,"groups":139},"docs","Docs","i-lucide-library","Subjects no single project owns — the models, the procedures, the answered decisions.",[140,150,168,186,192,198,204],{"key":135,"label":141,"entries":142},"Start here",[143,147],{"path":144,"label":145,"kind":146},"\u002Fdocs\u002Freadme","Overview","doc",{"path":148,"label":149,"kind":146},"\u002Fdocs\u002Ffeatures","Features",{"key":151,"label":152,"entries":153},"concepts","Concepts",[154,156,159,162,165],{"path":155,"label":145,"kind":146},"\u002Fdocs\u002Fconcepts\u002Freadme",{"path":157,"label":158,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fversioning","How a version gets derived from a commit",{"path":160,"label":161,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fconventions","Naming and folder conventions",{"path":163,"label":164,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fagent-setup","The agent setup as one inspectable system",{"path":166,"label":167,"kind":146},"\u002Fdocs\u002Fconcepts\u002Fboundaries","Why the boundary system exists",{"key":169,"label":170,"entries":171},"guides","Guides",[172,174,177,180,183],{"path":173,"label":145,"kind":146},"\u002Fdocs\u002Fguides\u002Freadme",{"path":175,"label":176,"kind":146},"\u002Fdocs\u002Fguides\u002Fchange-lifecycle","A change, end to end",{"path":178,"label":179,"kind":146},"\u002Fdocs\u002Fguides\u002Fadding-a-locale","Adding a locale",{"path":181,"label":182,"kind":146},"\u002Fdocs\u002Fguides\u002Ffirst-hour","First hour in this repo",{"path":184,"label":185,"kind":146},"\u002Fdocs\u002Fguides\u002Frepo-secrets","Provisioning the repo secrets",{"key":187,"label":188,"entries":189},"decisions","Decisions",[190],{"path":191,"label":145,"kind":146},"\u002Fdocs\u002Fdecisions\u002Freadme",{"key":193,"label":194,"entries":195},"audits","Audits",[196],{"path":197,"label":145,"kind":146},"\u002Fdocs\u002Faudits\u002Freadme",{"key":199,"label":200,"entries":201},"workflows","Workflows",[202],{"path":203,"label":145,"kind":146},"\u002Fdocs\u002Fworkflows\u002Freadme",{"key":205,"label":206,"entries":207},"benchmarks","Benchmarks",[208],{"path":209,"label":145,"kind":146},"\u002Fdocs\u002Fbenchmarks\u002Freadme",{"id":211,"label":212,"icon":31,"blurb":213,"groups":214},"apps","Apps","Each app's own reference, colocated with its code so it changes in the same diff.",[215,220,233,240,245,250],{"key":36,"label":216,"entries":217},"Developer Portal",[218],{"path":219,"label":145,"kind":130},"\u002Fapps\u002Fdeveloper-portal\u002Freadme",{"key":41,"label":101,"entries":221},[222,224,227,230],{"path":223,"label":145,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Freadme",{"path":225,"label":226,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Fdesign","Huella Legal design",{"path":228,"label":229,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Flayers\u002Finterest\u002Freadme","layers\u002Finterest",{"path":231,"label":232,"kind":130},"\u002Fapps\u002Fhuella-legal\u002Flayers\u002Flegacy\u002Freadme","layers\u002Flegacy",{"key":46,"label":104,"entries":234},[235,237],{"path":236,"label":145,"kind":130},"\u002Fapps\u002Fmarina-roustan\u002Freadme",{"path":238,"label":239,"kind":130},"\u002Fapps\u002Fmarina-roustan\u002Fdesign","Marina Roustan design",{"key":51,"label":241,"entries":242},"Portfolio",[243],{"path":244,"label":145,"kind":130},"\u002Fapps\u002Fportfolio\u002Freadme",{"key":130,"label":246,"entries":247},"Readme",[248],{"path":249,"label":212,"kind":130},"\u002Fapps\u002Freadme",{"key":56,"label":251,"entries":252},"Wp Editor",[253],{"path":254,"label":145,"kind":130},"\u002Fapps\u002Fwp-editor\u002Freadme",{"id":256,"label":257,"icon":62,"blurb":258,"groups":259},"packages","Packages","Each package's own reference, colocated with its code so it changes in the same diff.",[260,268,276,282,287],{"key":67,"label":261,"entries":262},"Configs",[263,265],{"path":264,"label":145,"kind":130},"\u002Fpackages\u002Fconfigs\u002Freadme",{"path":266,"label":267,"kind":130},"\u002Fpackages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Freadme","eslint\u002Flib",{"key":72,"label":269,"entries":270},"Content",[271,273],{"path":272,"label":145,"kind":130},"\u002Fpackages\u002Fcontent\u002Freadme",{"path":274,"label":275,"kind":130},"\u002Fpackages\u002Fcontent\u002Fsrc\u002Fnuxt\u002Freadme","nuxt",{"key":76,"label":76,"entries":277},[278,280],{"path":279,"label":145,"kind":130},"\u002Fpackages\u002Fi18n\u002Freadme",{"path":281,"label":275,"kind":130},"\u002Fpackages\u002Fi18n\u002Fsrc\u002Fnuxt\u002Freadme",{"key":81,"label":283,"entries":284},"Observability",[285],{"path":286,"label":145,"kind":130},"\u002Fpackages\u002Fobservability\u002Freadme",{"key":130,"label":246,"entries":288},[289],{"path":290,"label":257,"kind":130},"\u002Fpackages\u002Freadme",{"id":292,"label":293,"icon":85,"blurb":294,"groups":295},"infrastructure","Infrastructure","Each service's own reference, colocated with its code so it changes in the same diff.",[296,300,347],{"key":130,"label":246,"entries":297},[298],{"path":299,"label":293,"kind":130},"\u002Finfrastructure\u002Freadme",{"key":90,"label":301,"entries":302},"Scripts",[303,305,308,311,314,317,320,323,326,329,332,335,338,341,344],{"path":304,"label":145,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Freadme",{"path":306,"label":307,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fbrand\u002Freadme","brand",{"path":309,"label":310,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fci-failures\u002Freadme","ci-failures",{"path":312,"label":313,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fcoverage-report\u002Freadme","coverage-report",{"path":315,"label":316,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdev\u002Freadme","dev",{"path":318,"label":319,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fdrift\u002Freadme","drift",{"path":321,"label":322,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fenv-sync\u002Freadme","env-sync",{"path":324,"label":325,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Finvariants\u002Freadme","invariants",{"path":327,"label":328,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Freadme","issue",{"path":330,"label":331,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Freadme","map",{"path":333,"label":334,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Freadme","shared",{"path":336,"label":337,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fship\u002Freadme","ship",{"path":339,"label":340,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fusage\u002Freadme","usage",{"path":342,"label":343,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworkflow\u002Freadme","workflow",{"path":345,"label":346,"kind":130},"\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fworktree\u002Freadme","worktree",{"key":95,"label":348,"entries":349},"Translations",[350],{"path":351,"label":145,"kind":130},"\u002Finfrastructure\u002Ftranslations\u002Freadme",{"id":353,"label":354,"icon":355,"blurb":356,"groups":357},"agents","Agent setup","i-lucide-bot","The skills and subagents an agent working in this repo loads.",[358,373],{"key":353,"label":359,"entries":360},"Subagents",[361,364,367,370],{"path":362,"label":363,"kind":130},"\u002F.claude\u002Fagents\u002Freview-architecture","Review Architecture",{"path":365,"label":366,"kind":130},"\u002F.claude\u002Fagents\u002Freview-correctness","Review Correctness",{"path":368,"label":369,"kind":130},"\u002F.claude\u002Fagents\u002Freview-tests","Review Tests",{"path":371,"label":372,"kind":130},"\u002F.claude\u002Fagents\u002Fticket-planner","Ticket Planner",{"key":374,"label":375,"entries":376},"skills","Skills",[377,381,384,387,390,393,396,399,402,405,408,411,414,417,420,423,426],{"path":378,"label":379,"kind":380},"\u002F.claude\u002Fskills\u002Fcontent-new-vendor\u002Fskill","Adding a content vendor","skill",{"path":382,"label":383,"kind":380},"\u002F.claude\u002Fskills\u002Fconfigs-new-rule\u002Fskill","Adding a lint rule",{"path":385,"label":386,"kind":380},"\u002F.claude\u002Fskills\u002Fscripts-new-script\u002Fskill","Adding a script",{"path":388,"label":389,"kind":380},"\u002F.claude\u002Fskills\u002Fi18n-new-vendor\u002Fskill","Adding a translations vendor",{"path":391,"label":392,"kind":380},"\u002F.claude\u002Fskills\u002Fnuxt-module-route\u002Fskill","Adding to a package's Nuxt module",{"path":394,"label":395,"kind":380},"\u002F.claude\u002Fskills\u002Fbenchmark\u002Fskill","Benchmarking a design",{"path":397,"label":398,"kind":380},"\u002F.claude\u002Fskills\u002Fwp-bulk-edit\u002Fskill","Bulk-editing WordPress through the editor",{"path":400,"label":401,"kind":380},"\u002F.claude\u002Fskills\u002Fdoc-drift-check\u002Fskill","Checking docs against code",{"path":403,"label":404,"kind":380},"\u002F.claude\u002Fskills\u002Fcomment-cleanup\u002Fskill","Comment cleanup",{"path":406,"label":407,"kind":380},"\u002F.claude\u002Fskills\u002Fgithub-issue\u002Fskill","Creating a GitHub issue",{"path":409,"label":410,"kind":380},"\u002F.claude\u002Fskills\u002Fproject-workflow\u002Fskill","Running a project through a workflow",{"path":412,"label":413,"kind":380},"\u002F.claude\u002Fskills\u002Fnew-package\u002Fskill","Scaffolding a workspace project",{"path":415,"label":416,"kind":380},"\u002F.claude\u002Fskills\u002Fstart-issue\u002Fskill","Starting work on a GitHub issue",{"path":418,"label":419,"kind":380},"\u002F.claude\u002Fskills\u002Fdecision-report\u002Fskill","Writing a decision report",{"path":421,"label":422,"kind":380},"\u002F.claude\u002Fskills\u002Faudit-report\u002Fskill","Writing an audit",{"path":424,"label":425,"kind":380},"\u002F.claude\u002Fskills\u002Fhouse-docs\u002Fskill","Writing docs here",{"path":427,"label":428,"kind":380},"\u002F.claude\u002Fskills\u002Fwriting-tests\u002Fskill","Writing specs here",{"id":430,"title":431,"body":432,"description":1716,"extension":1724,"kind":1725,"meta":1726,"navigation":1730,"path":1731,"seo":1732,"stem":1733,"url":1725,"verdict":1725,"__hash__":1734},"docs\u002Fdocs\u002Fdecisions\u002F0032-console-output-policy.md","🧭 Console output fails the pipeline, in source and in every test run",{"type":433,"value":434,"toc":1715},"minimark",[435,439,444,448,490,494,505,515,718,774,792,795,1212,1228,1241,1255,1259,1359,1363,1366,1376,1381,1517,1524,1528],[436,437,431],"h1",{"id":438},"console-output-fails-the-pipeline-in-source-and-in-every-test-run",[440,441,443],"h2",{"id":442},"context","Context",[445,446,447],"p",{},"A test run is meant to be silent: missing i18n keys, Vue warnings and runtime errors show up as\nconsole output long before they show up as a failed assertion. Local runs are clean, but CI is a\ndifferent environment. The worry is noise that only CI produces, that nobody sees, and that a\nchange can add without anyone noticing.",[445,449,450,451,455,456,463,464,467,468,471,472,467,475,478,479,485,486,489],{},"Nothing stops it today. There is no ",[452,453,454],"code",{},"no-console"," rule in\n",[457,458,460],"a",{"href":459},"repo:packages\u002Fconfigs\u002Fsrc\u002Feslint",[452,461,462],{},"packages\u002Fconfigs\u002Fsrc\u002Feslint\u002F",", no Vitest preset sets\n",[452,465,466],{},"setupFiles"," or ",[452,469,470],{},"onConsoleLog",", and no Playwright spec listens for ",[452,473,474],{},"console",[452,476,477],{},"pageerror",".\nvue-i18n's missing-key warnings are on, because\n",[457,480,482],{"href":481},"repo:apps\u002Fhuella-legal\u002Fi18n\u002Fi18n.config.ts",[452,483,484],{},"i18n.config.ts"," sets only ",[452,487,488],{},"datetimeFormats",".",[440,491,493],{"id":492},"result","Result",[445,495,496,500,501,504],{},[497,498,499],"strong",{},"Any console output fails the run that produced it. Expected output is declared by stubbing it.","\nReading the logs instead can't work, because CI never prints them: Nx shows a task's output only\nwhen the task fails, and the ",[452,502,503],{},"checks"," log of run 38773262855 ends with \"28 out of 30 successful\ntasks were not shown\". Once the baseline is zero, a change that adds a message fails its own PR,\nso \"did this add new logs\" needs no diff or baseline file.",[445,506,507,510,511,514],{},[497,508,509],{},"Local runs hid the noise too."," Vitest's default reporter printed no console line over all 8\nprojects (1,262 tests), while ",[452,512,513],{},"--reporter=verbose"," shows it, and the guard failed 67 tests in the two\nNuxt apps. Every one traced to the spec, not the app:",[516,517,518,537],"table",{},[519,520,521],"thead",{},[522,523,524,528,531,534],"tr",{},[525,526,527],"th",{},"Noise",[525,529,530],{},"Tests",[525,532,533],{},"Cause",[525,535,536],{},"Fix",[538,539,540,581,613,638,665,695],"tbody",{},[522,541,542,548,551,562],{},[543,544,545],"td",{},[452,546,547],{},"[VUE_ROUTER_R0004] No match found",[543,549,550],{},"30",[543,552,553,554,557,558,561],{},"Fixtures linked to ",[452,555,556],{},"\u002Fautores\u002F…"," and ",[452,559,560],{},"\u002Flistado\u002F…",", which the app doesn't route",[543,563,564,567,568,557,571,574,575,557,578],{},[452,565,566],{},"Byline.spec.ts",", ",[452,569,570],{},"AuthorCard.spec.ts",[452,572,573],{},"Pagination.spec.ts"," use ",[452,576,577],{},"\u002Fcolaboradores\u002F…",[452,579,580],{},"\u002Fpublicaciones?pagina=…",[522,582,583,588,591,603],{},[543,584,585],{},[452,586,587],{},"\u003CSuspense> is an experimental feature",[543,589,590],{},"25",[543,592,593,594,596,597,567,600,602],{},"Vue logs it once per app; ",[452,595,41],{}," filters it in ",[452,598,599],{},"devWarnings.client.ts",[452,601,36],{}," doesn't",[543,604,605,606,609,610],{},"The guard's one exemption, ",[452,607,608],{},"UPSTREAM"," in ",[452,611,612],{},"consoleGuard.ts",[522,614,615,620,623,633],{},[543,616,617],{},[452,618,619],{},"[Vue warn]: Failed to resolve component: RouterLink",[543,621,622],{},"10",[543,624,625,628,629,632],{},[452,626,627],{},"app\u002Ferror.spec.ts"," mounted with ",[452,630,631],{},"mount",", which has no router",[543,634,635],{},[452,636,637],{},"mountSuspended",[522,639,640,645,648,655],{},[543,641,642],{},[452,643,644],{},"[intlify] Not found '…' key",[543,646,647],{},"9",[543,649,650,651,654],{},"Script-side ",[452,652,653],{},"t()"," reached vue-i18n's empty test messages",[543,656,657,660,661,664],{},[452,658,659],{},"apps\u002Fhuella-legal\u002Fvitest.setup.ts"," sets ",[452,662,663],{},"missingWarn = false"," before every test, since the test bundle is empty by design",[522,666,667,678,680,686],{},[543,668,669,670,673,674,677],{},"The collector's ",[452,671,672],{},"✓","\u002F",[452,675,676],{},"✗"," lines",[543,679,64],{},[543,681,682,685],{},[452,683,684],{},"tools\u002Fcollect\u002Findex.spec.ts"," runs a CLI",[543,687,688,689,557,692],{},"The spec stubs ",[452,690,691],{},"console.log",[452,693,694],{},"console.error",[522,696,697,702,705,714],{},[543,698,699],{},[452,700,701],{},"async setup() … no \u003CSuspense> boundary",[543,703,704],{},"1",[543,706,707,710,711,713],{},[452,708,709],{},"app\u002Fpages\u002Fprojects.spec.ts"," used ",[452,712,631],{}," on an async page, so the page never rendered and the empty-list assertion passed vacuously",[543,715,716],{},[452,717,637],{},[445,719,720,723,724,727,728,557,731,734,735,738,739,742,743,746,747,750,751,754,755,758,759,762,763,769,770,773],{},[497,721,722],{},"E2E found three things the unit tests can't."," The built article page logged ",[452,725,726],{},"Hydration completed but contains mismatches"," (19 tests): ",[452,729,730],{},"ShareBar.vue",[452,732,733],{},"CiteBox.vue"," render a button\nbehind VueUse's ",[452,736,737],{},"isSupported",", which is ",[452,740,741],{},"false"," on the server and already ",[452,744,745],{},"true"," in the client's\nhydration pass. Both buttons now sit in ",[452,748,749],{},"\u003CClientOnly>",". Every not-found spec logs Chrome's ",[452,752,753],{},"Failed to load resource: … 404",", which a real 404 page always does, so those specs allow it through\n",[452,756,757],{},"NOT_FOUND_DOCUMENT",", which the Playwright preset exports. And every 404 made the server log ",[452,760,761],{},"[request error] [fatal]",",\nbecause ",[457,764,766],{"href":765},"repo:apps\u002Fhuella-legal\u002Fapp\u002Futils\u002FcreatePageError.ts",[452,767,768],{},"createPageError.ts"," set ",[452,771,772],{},"fatal: true","\nand Nitro logs every fatal error. It's now fatal only on the client or for a 5xx. On the server Nuxt\nrenders the error page either way, and a non-fatal 404's payload carries only the BFF route.",[445,775,776,777,779,780,783,784,787,788,791],{},"The industry practice matches. MUI and React fail any test with an unexpected ",[452,778,694],{}," or\n",[452,781,782],{},"warn",". GitLab's Jest ",[452,785,786],{},"console_watcher"," does too, with a top-level ignores list migrated test by\ntest. Shopware adopted ",[452,789,790],{},"jest-fail-on-console"," (ADR 2021-06-14) after runs produced \"hundreds of\nerrors and warnings\".",[445,793,794],{},"Line numbers are as of this report.",[516,796,797,810],{},[519,798,799],{},[522,800,801,804,807],{},[525,802,803],{},"#",[525,805,806],{},"Where",[525,808,809],{},"The change",[538,811,812,861,905,937,985,1006,1056,1078,1102,1171,1189],{},[522,813,814,816,837],{},[543,815,704],{},[543,817,818,819,822,823,826,827,609,830,833,834],{},"New ",[452,820,821],{},"packages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Fconsole.ts",", exported from ",[452,824,825],{},"lib\u002Findex.ts",", spread into ",[452,828,829],{},"createNodeConfig",[452,831,832],{},"eslint\u002Fnode.ts"," and into ",[452,835,836],{},"eslint\u002Fvue.ts",[543,838,839,842,843,846,847,849,850,853,854,857,858],{},[452,840,841],{},"no-console: \"error\"",", off for ",[452,844,845],{},"**\u002F*.spec.ts",". Use ",[452,848,454],{},", not a selector: ",[452,851,852],{},"restrictedSyntax.ts"," warns that a second ",[452,855,856],{},"no-restricted-syntax"," config replaces its selectors. Add a row to ",[452,859,860],{},"lib\u002FREADME.md",[522,862,863,865,868],{},[543,864,87],{},[543,866,867],{},"Every deliberate call",[543,869,870,871,874,875,878,879,567,882,557,885,609,888,891,892,557,894,609,897,900,901,904],{},"No file-level exemption anywhere: a file allowed to log would let a new, accidental log through too. Each deliberate reference gets ",[452,872,873],{},"\u002F\u002F eslint-disable-next-line no-console -- \u003Creason>"," on the line above, which the reviewer of the change sees, the same form the repo already uses for other rules. The sites: the collector's two output helpers in ",[452,876,877],{},"apps\u002Fdeveloper-portal\u002Ftools\u002Fcollect\u002Findex.ts",", the dev banner in ",[452,880,881],{},"infrastructure\u002Ftranslations\u002Fserver\u002Fsrc\u002Findex.ts",[452,883,884],{},"server\u002Fplugins\u002FerrorLog.ts",[452,886,887],{},"app\u002Fplugins\u002FdevWarnings.client.ts",[452,889,890],{},"apps\u002Fhuella-legal",", and ",[452,893,612],{},[452,895,896],{},"playwright\u002Fserver.ts",[452,898,899],{},"packages\u002Fconfigs",". The rule flags every ",[452,902,903],{},"console.x"," reference, assignments included",[522,906,907,910,915],{},[543,908,909],{},"3",[543,911,912],{},[452,913,914],{},"packages\u002Fi18n\u002Fsrc\u002Fnuxt\u002Fmodule.ts:54,64",[543,916,917,918,921,922,925,926,929,930,932,933,936],{},"Both build-time ",[452,919,920],{},"console.warn","s go through ",[452,923,924],{},"useLogger(\"@joinery\u002Fi18n\")"," from ",[452,927,928],{},"@nuxt\u002Fkit",", already a dependency. The three ",[452,931,920],{}," spies in ",[452,934,935],{},"module.spec.ts:110,123,134"," move to the logger",[522,938,939,941,955],{},[543,940,64],{},[543,942,818,943,946,947,949,950,609,952],{},[452,944,945],{},"packages\u002Fconfigs\u002Fsrc\u002Fvitest\u002Fsetup\u002FconsoleGuard.ts",", in ",[452,948,466],{}," of ",[452,951,829],{},[452,953,954],{},"vitest\u002Fnode.ts",[543,956,957,958,557,961,964,965,968,969,567,972,557,975,978,979,981,982],{},"A hand-rolled guard, inherited by ",[452,959,960],{},"vue.ts",[452,962,963],{},"nuxt.ts",". On load it replaces ",[452,966,967],{},"console.log\u002Finfo\u002Fwarn\u002Ferror\u002Fdebug"," with a recorder, once. ",[452,970,971],{},"beforeAll",[452,973,974],{},"afterEach",[452,976,977],{},"afterAll"," each throw with every message recorded since the last check, with its stack, so output from collection and from a spec's own hooks fails too. ",[452,980,974],{}," first runs ",[452,983,984],{},"vi.restoreAllMocks()",[522,986,987,989,997],{},[543,988,33],{},[543,990,991,567,994],{},[452,992,993],{},"packages\u002Fconfigs\u002Fsrc\u002Fvitest\u002Fnuxt.ts",[452,995,996],{},"createNuxtConfig",[543,998,999,1000,1002,1003,1005],{},"Pass the guard to both projects. The ",[452,1001,275],{}," project's ",[452,1004,466],{}," is the guard plus the caller's, never the caller's alone",[522,1007,1008,1011,1025],{},[543,1009,1010],{},"6",[543,1012,818,1013,1016,1017,1020,1021,1024],{},[452,1014,1015],{},"packages\u002Fconfigs\u002Fsrc\u002Fplaywright\u002Ftest.ts",", exported as ",[452,1018,1019],{},"@joinery\u002Fconfigs\u002Fplaywright\u002Ftest",", with ",[452,1022,1023],{},"@playwright\u002Ftest"," moved to the pnpm catalog",[543,1026,1027,1028,1030,1031,1034,1035,1038,1039,1041,1042,1044,1045,1048,1049,1052,1053],{},"Extends ",[452,1029,1023],{},"'s ",[452,1032,1033],{},"test"," by overriding ",[452,1036,1037],{},"page",". The catalog keeps one resolved copy, which Playwright requires. It collects every ",[452,1040,474],{}," message and every ",[452,1043,477],{},", and after ",[452,1046,1047],{},"use(page)"," expects the list to be empty, minus an ",[452,1050,1051],{},"allowedConsole: RegExp[]"," option set with ",[452,1054,1055],{},"test.use",[522,1057,1058,1061,1066],{},[543,1059,1060],{},"7",[543,1062,1063],{},[452,1064,1065],{},"apps\u002Fhuella-legal\u002Fe2e\u002F*.spec.ts",[543,1067,1068,1069,567,1072,557,1074,925,1076],{},"Import ",[452,1070,1071],{},"expect",[452,1073,1033],{},[452,1075,757],{},[452,1077,1019],{},[522,1079,1080,1083,1089],{},[543,1081,1082],{},"8",[543,1084,818,1085,1088],{},[452,1086,1087],{},"packages\u002Fconfigs\u002Fsrc\u002Feslint\u002Flib\u002Fe2eFixture.ts",", in both presets",[543,1090,1091,949,1094,925,1096,609,1098,1101],{},[452,1092,1093],{},"no-restricted-imports",[452,1095,1033],{},[452,1097,1023],{},[452,1099,1100],{},"**\u002Fe2e\u002F**\u002F*.spec.ts",", so a new spec can't bypass row 6",[522,1103,1104,1106,1128],{},[543,1105,647],{},[543,1107,818,1108,1111,1112,1115,1116,567,1119,609,1122,567,1125],{},[452,1109,1110],{},"packages\u002Fconfigs\u002Fsrc\u002Fplaywright\u002Fserver.ts"," (exported as ",[452,1113,1114],{},"@joinery\u002Fconfigs\u002Fplaywright\u002Fserver",") and ",[452,1117,1118],{},"teardown.ts",[452,1120,1121],{},"createConfig",[452,1123,1124],{},"playwright\u002Findex.ts",[452,1126,1127],{},"apps\u002Fhuella-legal\u002Fe2e\u002Fserver.ts",[543,1129,1130,1131,1134,1135,1137,1138,1141,1142,1144,1145,1148,1149,1152,1153,1156,1157,1160,1161,1163,1164,1166,1167,1170],{},"The app's preload calls ",[452,1132,1133],{},"recordServerConsole()",", which replaces the server's ",[452,1136,474],{}," with a recorder. It prints only until Nitro listens, so a boot crash still reaches Playwright's output, and a request's log is printed once, by the teardown, not again as ",[452,1139,1140],{},"[WebServer]"," output. It appends each message to the path ",[452,1143,1121],{}," passes in ",[452,1146,1147],{},"E2E_SERVER_CONSOLE",", the app's ",[452,1150,1151],{},"node_modules\u002F.cache\u002Fe2e\u002F",", outside ",[452,1154,1155],{},".playwright\u002F",". Nitro's own ",[452,1158,1159],{},"Listening on \u003Curl>"," line is the one exemption. ",[452,1162,1118],{},", which ",[452,1165,1121],{}," sets as ",[452,1168,1169],{},"globalTeardown",", fails the run if the file has anything else, or if it doesn't exist because the preload never called the recorder",[522,1172,1173,1176,1186],{},[543,1174,1175],{},"9a",[543,1177,1178,567,1180,567,1182,609,1184],{},[452,1179,730],{},[452,1181,733],{},[452,1183,768],{},[452,1185,890],{},[543,1187,1188],{},"The e2e findings above, fixed at their source",[522,1190,1191,1193,1206],{},[543,1192,622],{},[543,1194,1195,567,1198,1201,1202,1205],{},[452,1196,1197],{},"packages\u002Fconfigs\u002FREADME.md",[452,1199,1200],{},"apps\u002Fhuella-legal\u002FREADME.md",", the ",[452,1203,1204],{},"writing-tests"," skill",[543,1207,1208,1209],{},"The rule, the guard, the stub-to-expect convention and the e2e fixture. Then ",[452,1210,1211],{},"pnpm docs:map",[445,1213,1214,1217,1218,567,1221,1223,1224,1227],{},[497,1215,1216],{},"The guard is hand-rolled."," ",[452,1219,1220],{},"vitest-fail-on-console",[452,1222,790],{}," (Jest only) and\n",[452,1225,1226],{},"console-fail-test"," are each small and maintained by one person, while the projects that do this at\nscale write their own. It's about forty lines in the package that already owns test setup.",[445,1229,1230,1217,1233,1236,1237,1240],{},[497,1231,1232],{},"A test that expects output stubs it.",[452,1234,1235],{},"vi.spyOn(console, \"warn\").mockImplementation(() => {})","\nswallows the call before it reaches the recorder, and the assertion goes on the spy, the way\n",[452,1238,1239],{},"packages\u002Fi18n\u002Fsrc\u002Fnuxt\u002Fmodule.spec.ts:110"," already works.",[445,1242,1243,1246,1247,1250,1251,1254],{},[497,1244,1245],{},"E2E and unit tests catch different noise."," E2E runs against the production build, where Vue and\nvue-i18n compile their dev warnings out. So the fixture catches runtime errors, failed resource\nloads and hydration failures, and Vue warnings are row 4's job. Missing keys are no layer's job\nwhile unit tests run on an empty bundle with ",[452,1248,1249],{},"missingWarn"," off. SSR runs in the server process, so\nits output never reaches ",[452,1252,1253],{},"page.on(\"console\")",". Row 9 covers it.",[440,1256,1258],{"id":1257},"options-considered","Options considered",[516,1260,1261,1271],{},[519,1262,1263],{},[522,1264,1265,1268],{},[525,1266,1267],{},"Option",[525,1269,1270],{},"Why not",[538,1272,1273,1284,1293,1305,1325,1333,1344],{},[522,1274,1275,1281],{},[543,1276,1277,1278],{},"Exempt files or folders in each project's ",[452,1279,1280],{},"eslint.config.ts",[543,1282,1283],{},"Allows every future log in that file, deliberate or not, and nothing at the line tells the next developer the file is special",[522,1285,1286,1290],{},[543,1287,1288],{},[452,1289,1220],{},[543,1291,1292],{},"One maintainer and a small user base, to save about forty lines. The guard also has to fit two repo-specific rules a library wouldn't know: install once, before the Nuxt boot, and treat a stub as the declaration of expected output",[522,1294,1295,1298],{},[543,1296,1297],{},"Parse CI logs for warnings",[543,1299,1300,1301,1304],{},"Nx doesn't print a successful task's output, so there is nothing to parse without ",[452,1302,1303],{},"--output-style=static"," on every run. A log parser is also a second, fuzzier copy of what the test runner already knows per test",[522,1306,1307,1315],{},[543,1308,1309,1310,557,1312],{},"Warn instead of fail, or fail only on ",[452,1311,782],{},[452,1313,1314],{},"error",[543,1316,1317,1318,557,1321,1324],{},"A check that never fails gets ignored, which is how the noise built up in the projects above. ",[452,1319,1320],{},"log",[452,1322,1323],{},"info"," left in a test are stray debugging, and they're the same signal",[522,1326,1327,1330],{},[543,1328,1329],{},"A committed baseline that only blocks new messages (Betterer-style ratchet)",[543,1331,1332],{},"All 67 unit-test failures were fixed at their source in one change, which leaves a baseline file nothing to hold",[522,1334,1335,1341],{},[543,1336,1337,1338,1340],{},"Vitest's ",[452,1339,470],{}," hook",[543,1342,1343],{},"It runs in the main process and can only drop a message, not fail the test that logged it",[522,1345,1346,1356],{},[543,1347,1348,1349,1352,1353,1355],{},"Each app's own ",[452,1350,1351],{},"e2e\u002Ftest.ts",", extending the ",[452,1354,1033],{}," it passes into the preset",[543,1357,1358],{},"Keeps the preset free of a runtime Playwright import, at the price of a file every app copies. Both pin the same version, so the only risk was drift, which the catalog entry removes",[440,1360,1362],{"id":1361},"consequences","Consequences",[445,1364,1365],{},"Specs get stricter to write, as Shopware recorded: every component, request and translation key a\ntest touches has to really exist, because the warning it would have printed now fails the test.\nReal third-party noise goes on an allowlist, and every entry carries a reason.",[445,1367,1368,1371,1372,1375],{},[497,1369,1370],{},"Order."," Rows 1–3 first: the lint rule lands without breaking anything because the deliberate\ncall sites move in the same change. Then rows 4–5, with the spec fixes in the noise table, since the\nguard fails those 67 tests until they land. Then rows 6–9 for e2e, and 9a before the ",[452,1373,1374],{},"e2e"," job can\ngo green. Row 10 last, describing what landed.",[445,1377,1378],{},[497,1379,1380],{},"Tripwires an implementer will hit.",[1382,1383,1384,1414,1421,1432,1442,1453,1459,1465,1468,1481,1488],"ul",{},[1385,1386,1387,1390,1391,1393,1394,1399,1400,1403,1404,1407,1408,609,1410,1413],"li",{},[497,1388,1389],{},"Never reinstall the recorder."," In the ",[452,1392,275],{}," project, setup files run before the Nuxt boot, and\n",[457,1395,1397],{"href":1396},"repo:apps\u002Fhuella-legal\u002Fapp\u002Fplugins\u002FdevWarnings.client.ts",[452,1398,599],{}," then wraps\n",[452,1401,1402],{},"console.info"," to filter Vue's ",[452,1405,1406],{},"\u003CSuspense>"," message. Reassigning ",[452,1409,1402],{},[452,1411,1412],{},"beforeEach","\nthrows that filter away, and every page spec fails on the message.",[1385,1415,1416,1417,1420],{},"Two phases, two answers: the ",[452,1418,1419],{},"@nuxt\u002Ftest-utils"," environment is set up before any setup file, so\nthe guard can't see output from that setup, while the app's plugins run after it.",[1385,1422,1423,1425,1426,1429,1430,489],{},[452,1424,984],{}," in the guard restores every ",[452,1427,1428],{},"vi.spyOn"," spy after each test. No spec keeps a\nspy across tests today; one that needs to has to recreate it in its own ",[452,1431,1412],{},[1385,1433,1434,1435,1438,1439,1441],{},"Playwright empties ",[452,1436,1437],{},"outputDir"," (",[452,1440,1155],{},") when the run starts, after the server it started\nmay already have written. That's why row 9's log lives elsewhere.",[1385,1443,1444,1445,1448,1449,1452],{},"The fixture checks once the test body returns. Nuxt boots after ",[452,1446,1447],{},"load",", so a test that ends on\n",[452,1450,1451],{},"page.goto"," can pass while the app logs; another test on the same page still catches it.",[1385,1454,1455,1456,1458],{},"A throw in ",[452,1457,1169],{}," exits 1 even when every test passed, and the list reporter prints it\nas \"1 error was not a part of any test\".",[1385,1460,1461,1462,1464],{},"Don't trust a quiet local run as a baseline: Vitest's default reporter here prints no console\nline, and ",[452,1463,513],{}," shows what it hid.",[1385,1466,1467],{},"The first CI run with the guard is the real measurement. If it fails on noise that local runs\nnever show, fix it at its source. If there's too much to fix in one change, use a temporary\nignores list (GitLab's approach) with a filed issue per entry.",[1385,1469,1470,1473,1474,1477,1478,489],{},[452,1471,1472],{},"mockNuxtImport(\"useI18n\", () => () => ({ t }))"," breaks any child that reads more of the\ncomposer, which is why the article specs spread ",[452,1475,1476],{},"original()"," and override only ",[452,1479,1480],{},"t",[1385,1482,1483,1484,1487],{},"Move the i18n warnings to ",[452,1485,1486],{},"useLogger"," (row 3) rather than stubbing them. The guard may stop\nseeing them afterwards, which is fine for build-time output.",[1385,1489,1490,1491,557,1494,1497,1498,1501,1502,1508,1509,1512,1513,1516],{},"The developer portal's collector prints through ",[452,1492,1493],{},"print",[452,1495,1496],{},"printError",", the two opted-out\nhelpers at the top of ",[452,1499,1500],{},"tools\u002Fcollect\u002Findex.ts",". A new tool that prints adds its own opt-out.\n",[457,1503,1505],{"href":1504},"\u002Fwiki\u002Finfrastructure\u002Fscripts\u002Freadme",[452,1506,1507],{},"infrastructure\u002Fscripts"," prints through ",[452,1510,1511],{},"out.*"," and\n",[452,1514,1515],{},"process.stdout.write",", which the guard doesn't see either. Its specs already spy on the streams.",[445,1518,1519,1520,1523],{},"Revisit this if a dependency starts printing a message the repo can't fix and can't upgrade away\nfrom in the unit tests. That's the point where an ",[452,1521,1522],{},"ignores"," option on the presets earns its place.",[440,1525,1527],{"id":1526},"confirmation","Confirmation",[516,1529,1530,1540],{},[519,1531,1532],{},[522,1533,1534,1537],{},[525,1535,1536],{},"Claim",[525,1538,1539],{},"Check",[538,1541,1542,1561,1580,1599,1625,1638,1653,1670,1684,1701],{},[522,1543,1544,1547],{},[543,1545,1546],{},"Source can't log",[543,1548,1549,1550,1553,1554,1557,1558],{},"A ",[452,1551,1552],{},"console.log(\"x\")"," added to ",[452,1555,1556],{},"packages\u002Fcontent\u002Fsrc\u002F"," fails ",[452,1559,1560],{},"pnpm exec nx lint @joinery\u002Fcontent",[522,1562,1563,1566],{},[543,1564,1565],{},"The node preset fails on output",[543,1567,1549,1568,1571,1572,1575,1576,1579],{},[452,1569,1570],{},"console.warn(\"x\")"," added to any ",[452,1573,1574],{},"packages\u002Fcontent"," spec fails ",[452,1577,1578],{},"pnpm exec nx test @joinery\u002Fcontent",", naming the test and the message",[522,1581,1582,1585],{},[543,1583,1584],{},"The vue preset fails on output",[543,1586,1587,1588,1591,1592,1595,1596,1598],{},"The same in ",[452,1589,1590],{},"packages\u002Fui","'s spec fails ",[452,1593,1594],{},"pnpm exec nx test @joinery\u002Fui",", so happy-dom's ",[452,1597,474],{}," is the patched one",[522,1600,1601,1604],{},[543,1602,1603],{},"The nuxt preset fails on output",[543,1605,1549,1606,1608,1609,1217,1611,1575,1614,1617,1618,1621,1622,1624],{},[452,1607,1570],{}," in a ",[452,1610,41],{},[452,1612,1613],{},"app\u002F",[452,1615,1616],{},"pnpm exec nx test @joinery\u002Fhuella-legal",". Missing keys don't: ",[452,1619,1620],{},"vitest.setup.ts"," turns ",[452,1623,1249],{}," off",[522,1626,1627,1630],{},[543,1628,1629],{},"Boot-time wrappers survive",[543,1631,1632,1634,1635,1637],{},[452,1633,1616],{}," passes, page specs included, with ",[452,1636,599],{},"'s filter unchanged",[522,1639,1640,1643],{},[543,1641,1642],{},"Expected output is declared, not leaked",[543,1644,1645,1648,1649,1652],{},[452,1646,1647],{},"pnpm exec nx test @joinery\u002Fi18n"," passes with ",[452,1650,1651],{},"module.spec.ts"," asserting on the logger",[522,1654,1655,1658],{},[543,1656,1657],{},"The browser fails e2e",[543,1659,1549,1660,1608,1663,1665,1666,1669],{},[452,1661,1662],{},"console.error(\"x\")",[452,1664,41],{}," client plugin fails ",[452,1667,1668],{},"pnpm exec nx test:e2e @joinery\u002Fhuella-legal"," in the fixture",[522,1671,1672,1675],{},[543,1673,1674],{},"The server fails e2e",[543,1676,1549,1677,1608,1679,1681,1682],{},[452,1678,1570],{},[452,1680,41],{}," server route fails the same run in ",[452,1683,1169],{},[522,1685,1686,1689],{},[543,1687,1688],{},"No spec bypasses the fixture",[543,1690,1691,1694,1695,1557,1698],{},[452,1692,1693],{},"import { test } from \"@playwright\u002Ftest\""," in an ",[452,1696,1697],{},"e2e\u002F*.spec.ts",[452,1699,1700],{},"pnpm exec nx lint @joinery\u002Fhuella-legal",[522,1702,1703,1706],{},[543,1704,1705],{},"Nothing regressed",[543,1707,1708,1711,1712,1714],{},[452,1709,1710],{},"pnpm exec nx run-many -t lint typecheck test"," and the ",[452,1713,1374],{}," CI job pass",{"title":1716,"searchDepth":1717,"depth":1717,"links":1718},"",2,[1719,1720,1721,1722,1723],{"id":442,"depth":1717,"text":443},{"id":492,"depth":1717,"text":493},{"id":1257,"depth":1717,"text":1258},{"id":1361,"depth":1717,"text":1362},{"id":1526,"depth":1717,"text":1527},"md",null,{"issue":1727,"status":1728,"decision":1729},271,"implemented","accepted",true,"\u002Fdocs\u002Fdecisions\u002F0032-console-output-policy",{"title":431,"description":1716},"docs\u002Fdecisions\u002F0032-console-output-policy","cxVFak6sTIwkiJ3j_Fv8pDqg0k_02LTRKFoF3dr0RzQ",1795478403177]