Skip to content

Commit

Permalink
fix(e2e): actually test the packaged app when running npm run test-pa…
Browse files Browse the repository at this point in the history
…ckaged (#6558)

* too many dashes

* OH it works for test-ci, just not test
  • Loading branch information
lerouxb authored Dec 10, 2024
1 parent f98f820 commit ba50fcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/compass-e2e-tests/helpers/test-runner-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,8 @@ if ('then' in parsedArgs && typeof parsedArgs.then === 'function') {
export const context = parsedArgs as CommonParsedArgs &
Partial<DesktopParsedArgs & WebParsedArgs>;

debug('context:', context);

export function isTestingDesktop(ctx = context): ctx is DesktopParsedArgs {
return testEnv === 'desktop';
}
Expand Down
2 changes: 1 addition & 1 deletion packages/compass-e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "xvfb-maybe --auto-servernum --server-args=\"-screen 0 1432x840x24\" -- ts-node index.ts",
"test-ci": "npm run test",
"posttest-ci": "npm run coverage-report",
"test-packaged": "npm run test -- -- --test-packaged-app",
"test-packaged": "npm run test -- --test-packaged-app",
"test-packaged-ci": "npm run test-ci -- -- --test-packaged-app",
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write .",
"start-server-1": "mongodb-runner start --id=e2e-1 --topology=replset --secondaries=0 -- --port 27091",
Expand Down

0 comments on commit ba50fcd

Please sign in to comment.