Skip to content

Commit 63d763c

Browse files
CMCDragonkaitegefaulkes
authored andcommitted
chore: removed PK_TEST_COMMAND, PK_TEST_PLATFORM, PK_TEST_TMPDIR and related env variables that are all migrated to Polykey-CLI
1 parent 08d753f commit 63d763c

3 files changed

Lines changed: 0 additions & 35 deletions

File tree

.env.example

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,5 @@ NODE_ENV=development
77
# Debug node native modules - https://nodejs.org/api/cli.html#node_debug_nativemodule
88
# NODE_DEBUG_NATIVE=
99

10-
# Path to PK executable to override tests/bin target
11-
# PK_TEST_COMMAND=
12-
13-
# If set, indicates that `PK_TEST_COMMAND` is targetting docker
14-
# PK_TEST_COMMAND_DOCKER=
15-
# Accessing AWS for testnet.polykey.io and mainnet.polykey.io deployment
16-
AWS_DEFAULT_REGION='ap-southeast-2'
17-
AWS_ACCESS_KEY_ID=
18-
AWS_SECRET_ACCESS_KEY=
19-
20-
# Path to container registry authentication file used by `skopeo`
21-
# The file has the same contents as `DOCKER_AUTH_CONFIG`
22-
# Use this command to acquire the auth file at `./tmp/auth.json`:
23-
# ```
24-
# printf 'PASSWORD' | skopeo login \
25-
# --username 'USERNAME' \
26-
# --password-stdin \
27-
# $CI_REGISTRY_IMAGE \
28-
# --authfile=./tmp/auth.json
29-
# ```
30-
# REGISTRY_AUTH_FILE=
31-
3210
# Authenticate to GitHub with `gh`
3311
# GITHUB_TOKEN=
34-
35-
# To allow testing different executables in the bin tests
36-
# Both PK_TEST_COMMAND and PK_TEST_PLATFORM must be set at the same time
37-
# PK_TEST_COMMAND= #Specify the shell command we want to test against
38-
# PK_TEST_PLATFORM=docker #Overrides the auto set `testPlatform` variable used for enabling platform specific tests
39-
# PK_TEST_TMPDIR= #Sets the `global.tmpDir` variable to allow overriding the temp directory used for tests

jest.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const moduleNameMapper = pathsToModuleNameMapper(compilerOptions.paths, {
1111

1212
// Global variables that are shared across the jest worker pool
1313
// These variables must be static and serializable
14-
if ((process.env.PK_TEST_PLATFORM != null) !== (process.env.PK_TEST_COMMAND != null)) throw Error('Both PK_TEST_PLATFORM and PK_TEST_COMMAND must be set together.')
1514
const globals = {
1615
// Absolute directory to the project root
1716
projectDir: __dirname,
@@ -27,9 +26,6 @@ const globals = {
2726
failedConnectionTimeout: 50000,
2827
// Timeouts rely on setTimeout which takes 32 bit numbers
2928
maxTimeout: Math.pow(2, 31) - 1,
30-
testCmd: process.env.PK_TEST_COMMAND,
31-
testPlatform: process.env.PK_TEST_PLATFORM,
32-
tmpDir: path.resolve(process.env.PK_TEST_TMPDIR ?? os.tmpdir()),
3329
};
3430

3531
// The `globalSetup` and `globalTeardown` cannot access the `globals`

tests/global.d.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,3 @@ declare var defaultTimeout: number;
1313
declare var polykeyStartupTimeout: number;
1414
declare var failedConnectionTimeout: number;
1515
declare var maxTimeout: number;
16-
declare var testCmd: string | undefined;
17-
declare var testPlatform: string;
18-
declare var tmpDir: string;

0 commit comments

Comments
 (0)