Skip to content
Permalink
Browse files

test(core): use ref-napi instead of ref

  • Loading branch information
malept committed Nov 20, 2019
1 parent bc0049f commit 105efef2ee78881c8f22de391604bd1569e4ceca
Showing with 3 additions and 3 deletions.
  1. +3 −3 packages/api/core/test/slow/api_spec_slow.ts
@@ -284,14 +284,14 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {
});

it('can package without errors with native pre-gyp deps installed', async () => {
await installDeps(dir, ['ref']);
await installDeps(dir, ['ref-napi']);
await forge.package({ dir });
await fs.remove(path.resolve(dir, 'node_modules/ref'));
await fs.remove(path.resolve(dir, 'node_modules/ref-napi'));
});

it('can package without errors', async () => {
const packageJSON = await readRawPackageJson(dir);
delete packageJSON.dependencies.ref;
delete packageJSON.dependencies['ref-napi'];
packageJSON.config.forge.packagerConfig.asar = true;
await fs.writeJson(path.resolve(dir, 'package.json'), packageJSON);

0 comments on commit 105efef

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