Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Jan 24, 2024
1 parent 96a3991 commit e008b7d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/size.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const getSizes = (metafile: Metafile) => {

const readStats = async (path: string): Promise<Record<string, number>> => {
const files = await globby(path);
console.log(path, files);
const contents = await Promise.all(files.map((file) => readFile(file, 'utf-8')));
const sizes = contents.flatMap((content) => getSizes(JSON.parse(content)));
return Object.fromEntries(sizes);
Expand All @@ -37,7 +36,6 @@ const percentageDifference = (oldValue: number, newValue: number): string => {
const main = async () => {
const oldStats = await readStats('./cypress/snapshots/stats/base/**/*.json');
const newStats = await readStats('./cypress/snapshots/stats/head/**/*.json');
console.log(oldStats, newStats);
const diff = Object.entries(newStats)
.map(([key, value]) => {
const oldValue = oldStats[key];
Expand Down

0 comments on commit e008b7d

Please sign in to comment.