Skip to content

Commit

Permalink
chore: ensure consistent toEqualImage() resolution when running on hi…
Browse files Browse the repository at this point in the history
…dpi displays
  • Loading branch information
mattjennings committed Apr 7, 2024
1 parent 7fd4f2c commit 0666276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spec/_boot.ts
Expand Up @@ -4,6 +4,9 @@ ex.Flags.enable('suppress-obsolete-message');
const testsContext = require.context('.', true, /Spec$/);
testsContext.keys().forEach(testsContext);

// ensure consistent toEqualImage() resolution when running on hidpi displays
window.devicePixelRatio = 1;

const MemoryReporter = {
previousMemory: (window.performance as any).memory,
largeMemory: [],
Expand Down

0 comments on commit 0666276

Please sign in to comment.