|
1 | 1 | // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
2 | 2 |
|
3 | 3 | exports[`report-to-stdout > should contain all sections when using the fixture report 1`] = `
|
4 |
| -"[1mCode PushUp Report[22m - @code-pushup/[email protected] |
5 |
| -[3m[90m---[39m[23m |
6 |
| -[3m[90mPackage Name: @code-pushup/core[39m[23m |
7 |
| -[3m[90mVersion: 0.1.0[39m[23m |
8 |
| -[3m[90mCommit: feat(cli): add logic for markdown report - 7eba125ad5643c2f90cb21389fc3442d786f43f9[39m[23m |
9 |
| -[3m[90mDate: today[39m[23m |
10 |
| -[3m[90mDuration: 42ms[39m[23m |
11 |
| -[3m[90mPlugins: 1[39m[23m |
12 |
| -[3m[90mAudits: 1[39m[23m |
13 |
| -[3m[90m---[39m[23m |
| 4 | +"Code PushUp Report - @code-pushup/[email protected] |
14 | 5 |
|
15 | 6 |
|
16 |
| - 🏷 Category ⭐ Score 🛡 Audits |
17 |
| - Category 1 0 1/1 |
| 7 | +ESLint audits |
18 | 8 |
|
| 9 | +● Disallow assignment operators in conditional expressions 0 |
| 10 | +● Disallow reassigning \`const\` variables 0 |
| 11 | +● Disallow the use of \`debugger\` 0 |
| 12 | +● Disallow invalid regular expression strings in \`RegExp\` construct 0 |
| 13 | + ors |
| 14 | +● Disallow the use of undeclared variables unless mentioned in \`/*g 0 |
| 15 | + lobal */\` comments |
| 16 | +● Disallow loops with a body that allows only one iteration 0 |
| 17 | +● Disallow negating the left operand of relational operators 0 |
| 18 | +● Disallow use of optional chaining in contexts where the \`undefine 0 |
| 19 | + d\` value is not allowed |
| 20 | +● Disallow unused variables 1 warning |
| 21 | +● Require calls to \`isNaN()\` when checking for \`NaN\` 0 |
| 22 | +● Enforce comparing \`typeof\` expressions against valid strings 0 |
| 23 | +● Require braces around arrow function bodies 1 warning |
| 24 | +● Enforce camelcase naming convention 0 |
| 25 | +● Enforce consistent brace style for all control statements 0 |
| 26 | +● Require the use of \`===\` and \`!==\` 1 warning |
| 27 | +● Enforce a maximum number of lines of code in a function 1 warning |
| 28 | +● Enforce a maximum number of lines per file 0 |
| 29 | +● Disallow variable declarations from shadowing variables declared 3 warnings |
| 30 | + in the outer scope |
| 31 | +● Require \`let\` or \`const\` instead of \`var\` 0 |
| 32 | +● Require or disallow method and property shorthand syntax for obje 3 warnings |
| 33 | + ct literals |
| 34 | +● Require using arrow functions for callbacks 0 |
| 35 | +● Require \`const\` declarations for variables that are never reassig 1 warning |
| 36 | + ned after declared |
| 37 | +● Disallow using Object.assign with an object literal as the first 0 |
| 38 | + argument and prefer the use of object spread instead |
| 39 | +● Require or disallow \\"Yoda\\" conditions 0 |
| 40 | +● Disallow missing \`key\` props in iterators/collection literals 1 warning |
| 41 | +● Disallow missing props validation in a React component definition 6 warnings |
| 42 | +● Disallow missing React when using JSX 0 |
| 43 | +● enforces the Rules of Hooks 0 |
| 44 | +● verifies the list of dependencies for Hooks like useEffect and si 2 warnings |
| 45 | + milar |
| 46 | +● Disallow missing displayName in a React component definition 0 |
| 47 | +● Disallow comments from being inserted as text nodes 0 |
| 48 | +● Disallow duplicate properties in JSX 0 |
| 49 | +● Disallow \`target=\\"_blank\\"\` attribute without \`rel=\\"noreferrer\\"\` 0 |
| 50 | +● Disallow undeclared variables in JSX 0 |
| 51 | +● Disallow React to be incorrectly marked as unused 0 |
| 52 | +● Disallow variables used in JSX to be incorrectly marked as unused 0 |
| 53 | +● Disallow passing of children as props 0 |
| 54 | +● Disallow when a DOM element is using both children and dangerousl 0 |
| 55 | + ySetInnerHTML |
| 56 | +● Disallow usage of deprecated methods 0 |
| 57 | +● Disallow direct mutation of this.state 0 |
| 58 | +● Disallow usage of findDOMNode 0 |
| 59 | +● Disallow usage of isMounted 0 |
| 60 | +● Disallow usage of the return value of ReactDOM.render 0 |
| 61 | +● Disallow using string references 0 |
| 62 | +● Disallow unescaped HTML entities from appearing in markup 0 |
| 63 | +● Disallow usage of unknown DOM property 0 |
| 64 | +● Enforce ES5 or ES6 class for returning value in render function 0 |
19 | 65 |
|
20 |
| -[1mCategory 1 0[22m |
21 |
| -- Audit Title (1) |
22 |
| - audit description |
23 |
| - http://www.my-docs.dev |
24 | 66 |
|
| 67 | +Lighthouse audits |
25 | 68 |
|
| 69 | +● First Contentful Paint 1.2 s |
| 70 | +● Largest Contentful Paint 1.5 s |
| 71 | +● Total Blocking Time 0 ms |
| 72 | +● Cumulative Layout Shift 0 |
| 73 | +● Speed Index 1.2 s |
26 | 74 |
|
27 |
| -Made with ❤️ by code-pushup.dev" |
| 75 | +
|
| 76 | +Categories |
| 77 | +
|
| 78 | +┌────────────────┬───────┬────────┐ |
| 79 | +│ Category │ Score │ Audits │ |
| 80 | +├────────────────┼───────┼────────┤ |
| 81 | +│ Performance │ 92 │ 6 │ |
| 82 | +├────────────────┼───────┼────────┤ |
| 83 | +│ Bug prevention │ 68 │ 16 │ |
| 84 | +├────────────────┼───────┼────────┤ |
| 85 | +│ Code style │ 54 │ 13 │ |
| 86 | +└────────────────┴───────┴────────┘ |
| 87 | +
|
| 88 | +Made with ❤ by code-pushup.dev |
| 89 | +" |
28 | 90 | `;
|
0 commit comments