Commits (2)
# html-validate changelog
### [6.0.2](https://gitlab.com/html-validate/html-validate/compare/v6.0.1...v6.0.2) (2021-09-27)
### Bug Fixes
- **jest:** jest matcher should use FileSystemConfigLoader ([4d04bdc](https://gitlab.com/html-validate/html-validate/commit/4d04bdcdec2380cf6bc54bba8efd6f92d3c8d7bc))
### [6.0.1](https://gitlab.com/html-validate/html-validate/compare/v6.0.0...v6.0.1) (2021-09-27)
### Bug Fixes
......
{
"name": "html-validate",
"version": "6.0.1",
"version": "6.0.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "html-validate",
"version": "6.0.1",
"version": "6.0.2",
"license": "MIT",
"workspaces": [
"tests/integration/*"
{
"name": "html-validate",
"version": "6.0.1",
"version": "6.0.2",
"description": "Offline html5 validator",
"keywords": [
"html",
......
......@@ -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) {
......