Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Jun 30, 2024
1 parent 0553394 commit c96f4a6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@
"volta": {
"node": "20.13.1"
},
"packageManager": "yarn@4.2.2"
"packageManager": "yarn@4.3.1"
}
2 changes: 2 additions & 0 deletions test/e2e/recipe/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ export class RecipeRunner {
shell: true,
cwd: appPath,
stdio: process.env.DEBUG ? 'inherit' : 'pipe',
// Yarn v4 fail to install in CI without lock files
env: { ...process.env, YARN_ENABLE_IMMUTABLE_INSTALLS: 'false' },
});

if (result.status) {
Expand Down
1 change: 0 additions & 1 deletion test/unit/getPath-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "1.0.0",
"main": "main.js",
"scripts": {

"start": "../../../node_modules/.bin/electron ."
}
}
Empty file.
2 changes: 1 addition & 1 deletion test/unit/getPath.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { describe, expect, test } from 'vitest';

describe('app.getPath', () => {
test('not called before init', () => {
const result = spawnSync('yarn', ['start'], { cwd: join(__dirname, 'getPath-test-app') });
const result = spawnSync('npm', ['start'], { cwd: join(__dirname, 'getPath-test-app') });
// status is null on Windows in CI for some unknown reason
if (process.platform !== 'win32') {
expect(result.status).to.equal(0);
Expand Down

0 comments on commit c96f4a6

Please sign in to comment.