Skip to content

Commit

Permalink
Expose FlatRuleTester
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Jul 21, 2022
1 parent a6b307f commit 43d7a39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/unsupported-api.js
Expand Up @@ -13,6 +13,7 @@

const { FileEnumerator } = require("./cli-engine/file-enumerator");
const { FlatESLint } = require("./eslint/flat-eslint");
const { FlatRuleTester } = require("./rule-tester/flat-rule-tester");

//-----------------------------------------------------------------------------
// Exports
Expand All @@ -21,5 +22,6 @@ const { FlatESLint } = require("./eslint/flat-eslint");
module.exports = {
builtinRules: require("./rules"),
FlatESLint,
FlatRuleTester,
FileEnumerator
};
4 changes: 4 additions & 0 deletions tests/lib/unsupported-api.js
Expand Up @@ -27,6 +27,10 @@ describe("unsupported-api", () => {
assert.isFunction(api.FlatESLint);
});

it("should have FlatRuleTester exposed", () => {
assert.isFunction(api.FlatRuleTester);
});

it("should have builtinRules exposed", () => {
assert.instanceOf(api.builtinRules, LazyLoadingRuleMap);
});
Expand Down

0 comments on commit 43d7a39

Please sign in to comment.