apply(resolver) {
					resolver.hooks.file.tap("Test", (request, resolverContext) => {
						if (
							/test.configCases.*test.configCases/.test(
								/** @type {string} */
								(request.path)
							)
						)
							throw new Error("Trying to resolve as root path");
					});
				}
@param {Resolver & { hooks: { file: SyncBailHook<[ResolveRequest, ResolveContext], void> } }} resolver resolver