-
Notifications
You must be signed in to change notification settings - Fork 327
/
Copy pathconstants.ts
76 lines (75 loc) · 2.75 KB
/
constants.ts
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
/* 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,
/**
* If CLEANUP=0 is used, the .tmp_integration directory will not be deleted.
* This is useful for debugging locally.
*/
CLEANUP: !(process.env.CLEANUP === '0' || process.env.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_VERSION: process.env.E2E_CLERK_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,
} as const;