-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55a1623
commit 447954c
Showing
2 changed files
with
15 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,14 @@ | ||
import test from "ava"; | ||
import process from "process"; | ||
import { execSync } from "child_process"; | ||
import test from 'ava' | ||
import process from 'process' | ||
import { execSync } from "child_process" | ||
|
||
import { bundleApp } from "../build/index.js"; | ||
import { bundleApp } from '../build/index.js' | ||
|
||
test("log error", async (t) => { | ||
process.env.CI = true; | ||
process.chdir("../../../examples/electron"); | ||
execSync("pnpm install"); | ||
t.is( | ||
await bundleApp( | ||
{ | ||
formats: process.env.PACKAGER_FORMATS | ||
? process.env.PACKAGER_FORMATS.split(",") | ||
: null, | ||
}, | ||
{ verbosity: 2 }, | ||
), | ||
undefined, | ||
); | ||
}); | ||
test('log error', async (t) => { | ||
process.env.CI = true | ||
process.chdir('../../../examples/electron') | ||
execSync('yarn install') | ||
t.is(await bundleApp({ | ||
formats: process.env.PACKAGER_FORMATS ? process.env.PACKAGER_FORMATS.split(',') : null | ||
}, { verbosity: 2 }), undefined) | ||
}) |