* 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)
| 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; |
no test coverage detected