const ServiceCard = React.memo(function ServiceCard({ service }) {
return <ExpensiveVisualization service={service} />;
});
function Dashboard({ services, event }) {
const updated = services.map((service) => ({
...service,Spread operator in TypeScript is not properly type checked.
Reasoning – https://stackoverflow.com/a/53405628/1860213
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const path = require('path'); | |
| function isCamelCase(str) { | |
| return /^[a-z][a-zA-Z0-9]*$/.test(str); | |
| } | |
| function findCamelCaseFilesRecursively(folderPath) { | |
| fs.readdir(folderPath, (err, files) => { | |
| if (err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Screenshot is not cut off if <body/> in cypress/support/component-index.html has first child like | |
| ``` | |
| <div style="position: absolute; top: 0; bottom: 0; width: 100%; background-color: #FFF; z-index: -1000;"></div> | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export NODE_OPTIONS=--max-old-space-size=4096 |