-
Notifications
You must be signed in to change notification settings - Fork 452
Expand file tree
/
Copy pathconstants.ts
More file actions
104 lines (102 loc) · 3.9 KB
/
constants.ts
File metadata and controls
104 lines (102 loc) · 3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/* eslint-disable turbo/no-undeclared-env-vars */
import * as os from 'node:os';
import * as path from 'node:path';
export const constants = {
TMP_DIR: path.join(os.tmpdir(), '.temp_integration'),
CERTS_DIR: path.join(process.cwd(), 'integration/certs'),
APPS_STATE_FILE: path.join(os.tmpdir(), '.temp_integration', 'state.json'),
/**
* A URL to a running app that will be used to run the tests against.
* This is usually used when running the app has been started manually,
* outside the test runner.
*/
E2E_APP_URL: process.env.E2E_APP_URL,
/**
* Used to indicate which longRunning apps to start.
* Can also use * to start multiple apps, eg
* E2E_APP_ID=react.vite.*
*/
E2E_APP_ID: process.env.E2E_APP_ID,
/**
* Controls the URL the apps will load clerk.browser.js from.
* This is the same as the clerkJsUrl prop.
* If this is set, clerk-js will not be served automatically from the test runner.
*/
E2E_APP_CLERK_JS: process.env.E2E_APP_CLERK_JS,
/**
* Controls the path where clerk.browser.js is located on the disk.
*/
E2E_APP_CLERK_JS_DIR: process.env.E2E_APP_CLERK_JS_DIR,
/**
* Controls the URL the apps will load ui.browser.js from.
* If this is set, clerk-ui will not be served automatically from the test runner.
*/
E2E_APP_CLERK_UI: process.env.E2E_APP_CLERK_UI,
/**
* Controls the path where ui.browser.js is located on the disk.
*/
E2E_APP_CLERK_UI_DIR: process.env.E2E_APP_CLERK_UI_DIR,
/**
* If E2E_CLEANUP=0 is used, the .tmp_integration directory will not be deleted.
* This is useful for debugging locally.
*/
E2E_CLEANUP: !(process.env.E2E_CLEANUP === '0' || process.env.E2E_CLEANUP === 'false'),
DEBUG: process.env.DEBUG === 'true' || process.env.DEBUG === '1',
/**
* Used with E2E_APP_URL if the tests need to access BAPI.
*/
E2E_APP_SK: process.env.E2E_APP_SK,
E2E_APP_PK: process.env.E2E_APP_PK,
E2E_CLERK_API_URL: process.env.E2E_CLERK_API_URL,
/**
* The version of the dependency to use, controlled programmatically.
*/
E2E_NPM_FORCE: process.env.E2E_NPM_FORCE,
/**
* The version of the dependency to use, controlled programmatically.
*/
E2E_NEXTJS_VERSION: process.env.E2E_NEXTJS_VERSION,
/**
* The version of the dependency to use, controlled programmatically.
*/
E2E_REACT_VERSION: process.env.E2E_REACT_VERSION,
/**
* The version of the dependency to use, controlled programmatically.
*/
E2E_REACT_DOM_VERSION: process.env.E2E_REACT_DOM_VERSION,
/**
* The version of the dependency to use, controlled programmatically.
*/
E2E_VITE_VERSION: process.env.E2E_VITE_VERSION,
/**
* The version of the dependency to use, controlled programmatically.
*/
E2E_CLERK_JS_VERSION: process.env.E2E_CLERK_JS_VERSION,
/**
* The version of the dependency to use, controlled programmatically.
*/
E2E_CLERK_UI_VERSION: process.env.E2E_CLERK_UI_VERSION,
/**
* Key used to encrypt request data for Next.js dynamic keys.
* @ref https://clerk.com/docs/references/nextjs/clerk-middleware#dynamic-keys
*/
E2E_CLERK_ENCRYPTION_KEY: process.env.CLERK_ENCRYPTION_KEY,
/**
* PK and SK pairs from the env to use for integration tests.
*/
INTEGRATION_INSTANCE_KEYS: process.env.INTEGRATION_INSTANCE_KEYS,
INTEGRATION_STAGING_INSTANCE_KEYS: process.env.INTEGRATION_STAGING_INSTANCE_KEYS,
} as const;
/**
* Floor versions of transitive deps that carry pnpm "trustedPublisher" evidence.
* Injected as `pnpm.overrides` into every fixture's tmp `package.json` so that
* isolated installs satisfy pnpm 10's trust-downgrade check. Sourced from the
* 2026-05-11 npm supply-chain incident response (mini Shai-Hulud worm).
* Update when upstream packages publish newer versions via OIDC trusted publisher.
*/
export const TRUSTED_OVERRIDES: Record<string, string> = {
'semver@<7.7.3': '7.7.4',
'chokidar@<5.0.0': '5.0.0',
'undici-types@<7.16.0': '7.24.8',
'vite@<7.1.3': '7.3.3',
};