Skip to content
Permalink
Browse files

chore: fix ps1 issue on windows CI

  • Loading branch information
MarshallOfSound authored and malept committed Mar 14, 2019
1 parent 83bfe97 commit 5c13df3bb3bfec06f2b44f6e5e3ba63ff60a7f30
Showing with 5 additions and 4 deletions.
  1. +2 −1 package.json
  2. +3 −3 packages/api/core/test/slow/api_spec_slow.ts
@@ -34,7 +34,8 @@
"docs:deploy": "ts-node tools/sync-readmes.ts && bolt docs && ts-node tools/copy-now.ts && cd docs && now && now alias",
"docs:deploy:ci": "ts-node tools/sync-readmes.ts && bolt docs && ts-node tools/copy-now.ts && cd docs && now --token $NOW_TOKEN && now alias --token $NOW_TOKEN",
"lint": "ts-node tools/link-ts.ts && bolt ws exec -- node_modules/.bin/tslint src/**/*.ts test/**/*.ts",
"test": "cross-env TS_NODE_FILES=true yarn run mocha './tools/test-globber.ts'"
"test": "cross-env TS_NODE_FILES=true yarn run mocha './tools/test-globber.ts'",
"postinstall": "rimraf node_modules/.bin/*.ps1"
},
"dependencies": {
"@octokit/rest": "^16.0.1",
@@ -197,7 +197,7 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {

const packageJSON = await readRawPackageJson(dir);
packageJSON.name = 'testapp';
packageJSON.productName = 'Test App';
packageJSON.productName = 'Test-App';
packageJSON.config.forge.packagerConfig.asar = false;
if (process.platform === 'win32') {
await fs.copy(
@@ -264,14 +264,14 @@ describe(`electron-forge API (with installer=${nodeInstaller})`, () => {
});

describe('after package', () => {
let resourcesPath = 'Test App.app/Contents/Resources';
let resourcesPath = 'Test-App.app/Contents/Resources';
if (process.platform !== 'darwin') {
resourcesPath = 'resources';
}

it('should have deleted the forge config from the packaged app', async () => {
const cleanPackageJSON = JSON.parse(asar.extractFile(
path.resolve(dir, 'out', `Test App-${process.platform}-${process.arch}`, resourcesPath, 'app.asar'),
path.resolve(dir, 'out', `Test-App-${process.platform}-${process.arch}`, resourcesPath, 'app.asar'),
'package.json',
));
expect(cleanPackageJSON).to.not.have.nested.property('config.forge');

0 comments on commit 5c13df3

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