checkTest = (test, module, context) => {
	if (test === undefined) return true;
	if (typeof test === "function") {
		return test(module, context);
	}
	if (typeof test === "boolean") return test;
	if (typeof test === "string") {
		const name = module.nameForCondition();
		return name ? name.startsWith(test) : false;
	}
	if (test instanceof RegExp) {
		const name = module.nameForCondition();
		return name ? test.test(name) : false;
	}
	return false;
}
@param {OptimizationSplitChunksCacheGroup["test"]} test test option
@param {Module} module the module
@param {CacheGroupsContext} context context object
@returns {boolean} true, if the module should be selected