You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,31 @@ This file controls which packages `npm-check-updates` can upgrade:
141
141
142
142
## Testing Requirements
143
143
144
+
### CRITICAL: NODE_OPTIONS Flag
145
+
146
+
**⚠️ IMPORTANT:** Cypress tests MUST be run with `NODE_OPTIONS=--openssl-legacy-provider` due to Node.js 17+ security changes disabling legacy OpenSSL algorithms. Our build dependencies require these algorithms.
147
+
148
+
**Always use npm scripts** (which include this flag automatically):
149
+
```bash
150
+
npm run cypress:run # Correct - includes NODE_OPTIONS
151
+
npm run cypress:open # Correct - interactive runner with NODE_OPTIONS
152
+
npm run test# Correct - full test suite with NODE_OPTIONS
153
+
```
154
+
155
+
**When running Cypress directly, include the flag:**
156
+
```bash
157
+
# Correct - runs specific spec with NODE_OPTIONS
158
+
npm run cypress:run -- --spec cypress/e2e/integration.cy.ts
159
+
160
+
# Also correct - explicit NODE_OPTIONS
161
+
npx cross-env NODE_ENV=development BUILD_ENV=development NODE_OPTIONS=--openssl-legacy-provider npx cypress run --spec cypress/e2e/integration.cy.ts
162
+
163
+
# WRONG - missing NODE_OPTIONS, will timeout
164
+
npx cypress run --spec cypress/e2e/integration.cy.ts
165
+
```
166
+
167
+
Tests will appear to hang with "timed out waiting for async callback" if `NODE_OPTIONS` is missing.
0 commit comments