aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/electronJest.cjs
blob: a7b7986ffadc0be115ae0910b9ab01f632657d24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
const { app } = require('electron');

if (process.env.DISABLE_GPU === 'true') {
  app.disableHardwareAcceleration();
}

app.on('window-all-closed', () => {
  // Handle event to avoid exiting the application in watch mode.
});

// @ts-expect-error -- `jest-cli` has no typescript declaration.
require('jest-cli/bin/jest');