test: add electron test (#1840)

This commit is contained in:
Himself65
2023-04-24 18:53:36 -05:00
committed by GitHub
parent 9c94d05dd8
commit d3ce90e721
18 changed files with 212 additions and 33 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import path from 'node:path';
import * as esbuild from 'esbuild';
import commonFn from './common.mjs';
import { config } from './common.mjs';
const repoRootDir = path.join(__dirname, '..', '..', '..');
const electronRootDir = path.join(__dirname, '..');
@@ -77,7 +77,7 @@ async function cleanup() {
}
async function buildLayers() {
const common = commonFn();
const common = config();
await esbuild.build(common.preload);
await esbuild.build({