Permalink
Browse files
Correctly silence code signing failure in the tests
- Loading branch information...
Showing
with
10 additions
and
1 deletion.
-
+10
−1
test.js
|
|
@@ -7,6 +7,15 @@ import tempfile from 'tempfile'; |
|
|
test(async t => {
|
|
|
const cwd = tempfile();
|
|
|
fs.mkdirSync(cwd);
|
|
|
- await t.throws(execa(path.join(__dirname, 'cli.js'), [path.join(__dirname, 'fixture.app')], {cwd}), /Code signing failed/);
|
|
|
+
|
|
|
+ try {
|
|
|
+ await execa(path.join(__dirname, 'cli.js'), [path.join(__dirname, 'fixture.app')], {cwd});
|
|
|
+ } catch (err) {
|
|
|
+ // Silence code signing failure
|
|
|
+ if (!/Code signing failed/.test(err.message)) {
|
|
|
+ throw err;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
t.true(fs.existsSync(path.join(cwd, 'fixture-0.0.1.dmg')));
|
|
|
});
|
0 comments on commit
1f68d20