Skip to content
Permalink
Browse files

test(tests): add tests for packager & maker outDir support

  • Loading branch information
anulman authored and MarshallOfSound committed Feb 7, 2017
1 parent a68284b commit 32cecffde39979818923ab66599e0d2faa13f154
Showing with 14 additions and 0 deletions.
  1. +14 −0 test/slow/api_spec_slow.js
@@ -167,6 +167,16 @@ describe(`electron-forge API (with installer=${installer.substr(12)})`, () => {
await forge.package({ dir });
});

it('can package to outDir without errors', async () => {
const outDir = `${dir}/foo`;

expect(fs.existsSync(outDir)).to.equal(false);

await forge.package({ dir, outDir });

expect(fs.existsSync(outDir)).to.equal(true);
});

it('can package without errors with native pre-gyp deps installed', async () => {
await installDeps(dir, ['ref']);
await forge.package({ dir });
@@ -207,6 +217,10 @@ describe(`electron-forge API (with installer=${installer.substr(12)})`, () => {
it('successfully makes with default config', async () => {
await forge.make({ dir, skipPackage: true });
});

it('successfully makes to outDir with default config', async () => {
await forge.make({ dir, outDir: `${dir}/foo`, skipPackage: true });
});
});
});
});

0 comments on commit 32cecff

Please sign in to comment.
You can’t perform that action at this time.