Skip to content

Commit

Permalink
more reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Dec 19, 2024
1 parent 1315102 commit a794ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/lib/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import colorString from 'color-string'
import sanitize from 'sanitize-filename'
import * as plugins from './plugins'
import { fs } from './util/fs'
import { stat } from 'fs/promises'

let debug = Debug('cypress:server:screenshot')
const RUNNABLE_SEPARATOR = ' -- '
Expand Down Expand Up @@ -552,7 +551,8 @@ export = {
.then((buffer) => {
return fs.outputFile(pathToScreenshot, buffer)
}).then(() => {
return stat(pathToScreenshot)
// @ts-expect-error TODO: size is not assignable here
return fs.statAsync(pathToScreenshot).get('size')
}).then(({ size }) => {
const dimensions = getDimensions(details)

Expand Down

0 comments on commit a794ab4

Please sign in to comment.