Skip to content

Commit

Permalink
make test gooder
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Mar 3, 2022
1 parent f5407a7 commit e4c6a1f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
18 changes: 8 additions & 10 deletions packages/api/core/test/fast/make_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ describe('make', () => {
it('works with scoped package names', async () => {
const stubbedMake: (opts: MakeOptions) => Promise<ForgeMakeResult[]> = proxyquire.noCallThru().load('../../src/api/make', {
'../util/read-package-json': {
readMutatedPackageJson: () => Promise.resolve(require('../fixture/dummy_app_scoped_name/package.json')),
readMutatedPackageJson: () => Promise.resolve(require('../fixture/app-with-scoped-name/package.json')),
},
}).default;
await expect(
stubbedMake({
arch: 'x64',
dir: path.join(fixtureDir, 'maker-scoped'),
overrideTargets: ['@electron-forge/maker-zip'],
platform: 'linux',
skipPackage: true,
})
).to.eventually.be.rejectedWith(/@scope-package-linux-x64/);
await stubbedMake({
arch: 'x64',
dir: path.join(fixtureDir, 'app-with-scoped-name'),
overrideTargets: ['@electron-forge/maker-zip'],
platform: 'linux',
skipPackage: true,
});
after(() => proxyquire.callThru());
});

Expand Down
Empty file.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@
"license": "MIT",
"config": {
"forge": {
"packagerConfig": {
"baz": {}
},
"s3": {}
"makers": [
{
"name": "@electron-forge/maker-zip",
"platforms": [
"linux"
]
}
]
}
},
"devDependencies": {
Expand Down

0 comments on commit e4c6a1f

Please sign in to comment.