enso/app/ide-desktop/lib/dashboard/log-screenshot-diffs.ts
somebody1234 5f1333a519
Change dashboard to use 2 spaces for indentation (#8798)
This makes it consistent with the indentation style of GUI2.

# Important Notes
- This commit *will* need to be added to [`.git-blame-ignore-revs`](https://github.com/enso-org/enso/blob/develop/.git-blame-ignore-revs) *after* it is merged.
- This shouldn't need any particular QA (although QA doesn't hurt), as the only thing that was done is a `npx prettier -w .`, meaning that there should be zero logic changes.
2024-01-22 21:26:15 +00:00

16 lines
441 B
TypeScript

/** @file Temporary file to print base64 of a png file. */
import * as fs from 'node:fs/promises'
const ROOT = './test-results/'
for (const childName of await fs.readdir(ROOT)) {
const childPath = ROOT + childName
for (const fileName of await fs.readdir(childPath)) {
const filePath = childPath + '/' + fileName
const file = await fs.readFile(filePath)
console.log(filePath, file.toString('base64'))
}
}
process.exit(1)