mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-30 04:11:33 -08:00
6 lines
255 B
TypeScript
6 lines
255 B
TypeScript
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
if (process.env.NODE_ENV === 'test') {
|
|
// @ts-expect-error for spectron https://github.com/electron-userland/spectron#node-integration
|
|
window.electronRequire = require;
|
|
delete window.require;
|
|
}
|