Commit 4d04bdcd authored by David Sveningsson's avatar David Sveningsson
Browse files

fix(jest): jest matcher should use FileSystemConfigLoader

parent 08d3b0df
Pipeline #377530109 passed with stages
in 15 minutes and 20 seconds
......@@ -2,6 +2,7 @@
import deepmerge from "deepmerge";
import { ConfigData } from "../../config";
import { FileSystemConfigLoader } from "../../config/loaders/file-system";
import HtmlValidate from "../../htmlvalidate";
import { Message } from "../../reporter";
import { diff, diverge } from "../utils";
......@@ -75,7 +76,8 @@ function toHTMLValidateImpl(
const config = deepmerge(defaultConfig, userConfig || {});
const actualFilename = filename || this.testPath;
const htmlvalidate = new HtmlValidate();
const loader = new FileSystemConfigLoader();
const htmlvalidate = new HtmlValidate(loader);
const report = htmlvalidate.validateString(actual, actualFilename, config);
const pass = report.valid;
if (pass) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment