mirror of
https://github.com/hanzoai/jose.git
synced 2026-09-24 17:00:01 +00:00
19 lines
317 B
TypeScript
19 lines
317 B
TypeScript
// @ts-ignore
|
|
const { app } = require('electron')
|
|
import QUnit from 'qunit'
|
|
import run from './run.js'
|
|
|
|
// @ts-ignore
|
|
const lib = require('#dist')
|
|
|
|
app.on('ready', () => {
|
|
run(QUnit, lib, (stats) => {
|
|
if (stats?.failed !== 0) {
|
|
// @ts-ignore
|
|
app.exit(1)
|
|
} else {
|
|
app.exit(0)
|
|
}
|
|
})
|
|
})
|