refactor(theme): refactor CodeBlock parseLines logic + use inline snapshots to ease review (#11058)

* refactor codeblock parseLines logic + use inline snapshots

* refactor: apply lint autofix

* eslint

---------

Co-authored-by: slorber <749374+slorber@users.noreply.github.com>
This commit is contained in:
Sébastien Lorber 2025-04-04 13:22:51 +02:00 committed by GitHub
parent 16e3002911
commit f6bdc3123b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 417 additions and 444 deletions

2
.eslintrc.js vendored
View file

@ -298,7 +298,7 @@ module.exports = {
'jest/expect-expect': OFF,
'jest/no-large-snapshots': [
WARNING,
{maxSize: Infinity, inlineMaxSize: 10},
{maxSize: Infinity, inlineMaxSize: 50},
],
'jest/no-test-return-statement': ERROR,
'jest/prefer-expect-resolves': WARNING,