Skip to content

Commit 98b4ed4

Browse files
committed
Fix real test in CI
1 parent c5feb23 commit 98b4ed4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/e2e.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ jobs:
157157
' mockEnabled: '"$SF_TEST_MOCKENABLED" \
158158
'};' > tests/e2e/test-constants.local.js
159159
160+
- name: Ensure test constants exist (fallback when auth step skipped)
161+
if: vars.SF_TEST_MOCKENABLED != 'false'
162+
run: cp tests/e2e/test-constants.template.js tests/e2e/test-constants.local.js
163+
160164
- name: Install dependencies
161165
run: npm ci
162166

tests/e2e/test-constants.template.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
* Copy this file to test-constants.local.js and fill in real values,
44
* or run: npm run set-test-constants
55
*
6-
* test-constants.local.js is gitignored and will never be committed.
6+
* test-constants.local.js is gitignored. This template is used as fallback in CI
7+
* when .local is absent (mock mode).
78
*/
89
export const TEST_CONSTANTS = {
910
mockHost: "mock-host.salesforce.com",

0 commit comments

Comments
 (0)