Skip to content

@serenity-is/corelib / setRegisteredScripts

Function: setRegisteredScripts()

setRegisteredScripts(scripts): void

Defined in: src/base/scriptdata.ts:337

Seeds or updates the known script hashes (normally populated from the RegisteredScripts script tag). Useful in tests or when bootstrapping hashes manually.

Parameters

scripts

Record<string, string>

Map of script name to hash string. Falsy hash values are replaced with the current timestamp.

Returns

void