MCPcopy Index your code
hub / github.com/redis/node-redis / createFromConfig

Method createFromConfig

packages/test-utils/lib/index.ts:314–323  ·  view source on GitHub ↗

* Creates a new TestUtils instance from a configuration object. * * @param config - Configuration object containing Docker image and version settings * @param config.dockerImageName - The name of the Docker image to use for tests * @param config.dockerImageTagArgument - The command-line

(config: TestUtilsConfig)

Source from the content-addressed store, hash-verified

312 * @returns A new TestUtils instance configured with the provided settings
313 */
314 public static createFromConfig(config: TestUtilsConfig) {
315 return new TestUtils(
316 TestUtils.#getVersion(
317 config.dockerImageTagArgument,
318 config.dockerImageVersionArgument,
319 config.defaultDockerVersion
320 ),
321 config.dockerImageName
322 );
323 }
324
325 isVersionGreaterThan(minimumVersion: Array<number> | undefined): boolean {
326 if (minimumVersion === undefined) return true;

Callers 8

test-utils.tsFile · 0.80
constructorMethod · 0.80
test-utils.tsFile · 0.80
test-utils.tsFile · 0.80
test-utils.tsFile · 0.80
test-utils.tsFile · 0.80
test-utils.tsFile · 0.80
test-utils.tsFile · 0.80

Calls 1

#getVersionMethod · 0.80

Tested by

no test coverage detected