Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
test: add more logging in beforeEach
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsSim committed Sep 1, 2024
1 parent a0fb89a commit eda826e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/tests/e2e/util/setup-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = () => {

test.beforeAll( () => {
latestBuild = findLatestBuild( '../release' );
console.log( 'latestBuild', latestBuild );
console.log( '[beforeAll] latestBuild', latestBuild );
appInfo = parseElectronApp( latestBuild );
exeDir = path.dirname( appInfo.executable );
appData = exeDir;
Expand All @@ -45,6 +45,10 @@ module.exports = () => {
appData + '/GameComponents';

fs.existsSync( `${appData}/FSOLauncher.ini` ) && fs.unlinkSync( `${appData}/FSOLauncher.ini` );
console.info( '[beforeAll] exeDir', exeDir );
console.info( '[beforeAll] appInfo', appInfo );
console.info( '[beforeAll] appData', appData );
console.info( '[beforeAll] installDir', installDir );
} );

test.beforeEach( async () => {

Check failure on line 54 in app/tests/e2e/util/setup-test.js

View workflow job for this annotation

GitHub Actions / build-launcher (macos-latest)

tests/e2e/01-main.spec.js:8:3 › main › starts the app

1) tests/e2e/01-main.spec.js:8:3 › main › starts the app ───────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. at tests/e2e/util/setup-test.js:54 52 | } ); 53 | > 54 | test.beforeEach( async () => { | ^ 55 | // Reset console errors at the start of each test 56 | logs = []; 57 | at /Users/runner/work/fsolauncher/fsolauncher/app/tests/e2e/util/setup-test.js:54:8
Expand Down

0 comments on commit eda826e

Please sign in to comment.