Update glob

This commit is contained in:
Sidharth Vinod
2024-01-24 21:42:31 +05:30
parent 8d1d691bc3
commit 96a3991c56

View File

@@ -35,8 +35,8 @@ 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');
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]) => {