chore: drop comments that restate the code
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
// Test-side helpers: load the seed artifact and build SDK clients against prod.
|
||||
|
||||
import { RudderClient, createClient } from '../../../src/client/RudderClient.js';
|
||||
import type { TokenStore } from '../../../src/token/TokenStore.js';
|
||||
import { readArtifact } from './artifact.js';
|
||||
import type { SeedArtifact } from './types.js';
|
||||
|
||||
/** Loads the seed artifact; RUDDER_E2E_* env vars override file values. */
|
||||
export function loadArtifact(): SeedArtifact {
|
||||
const file = readArtifact();
|
||||
if (!file) {
|
||||
@@ -37,7 +34,6 @@ export function createInMemoryTokenStore(): TokenStore {
|
||||
};
|
||||
}
|
||||
|
||||
/** A client with no auth yet (in-memory tokens). */
|
||||
export function makeProdClient(
|
||||
artifact: SeedArtifact = loadArtifact(),
|
||||
): RudderClient {
|
||||
@@ -48,7 +44,6 @@ export function makeProdClient(
|
||||
});
|
||||
}
|
||||
|
||||
/** A device-authenticated client. In Node each call mints a fresh player (ephemeral device id). */
|
||||
export async function freshPlayer(
|
||||
artifact: SeedArtifact = loadArtifact(),
|
||||
): Promise<RudderClient> {
|
||||
|
||||
Reference in New Issue
Block a user