Skip to content

Commit

Permalink
test(tests): add tests for packager & maker outDir support
Browse files Browse the repository at this point in the history
  • Loading branch information
anulman authored and MarshallOfSound committed Mar 25, 2017
1 parent a68284b commit 32cecff
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/slow/api_spec_slow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down Expand Up @@ -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 });
});
});
});
});
Expand Down

0 comments on commit 32cecff

Please sign in to comment.