Skip to content

Commit

Permalink
Lazy import rules
Browse files Browse the repository at this point in the history
ESM version of #815
  • Loading branch information
nix6839 committed Dec 18, 2023
1 parent 9c03fdf commit 19ffda4
Show file tree
Hide file tree
Showing 2 changed files with 279 additions and 177 deletions.
4 changes: 3 additions & 1 deletion src/rules/__tests__/index.test.js
Expand Up @@ -6,7 +6,9 @@ test("not empty", () => {
expect(ruleEntries.length).toBeGreaterThan(0);
});

for (const [ruleName, rule] of ruleEntries) {
for (const [ruleName, rulePromise] of ruleEntries) {
const rule = await rulePromise;

test(`"${ruleName}" is a function`, () => {
expect(rule).toBeInstanceOf(Function);
});
Expand Down

0 comments on commit 19ffda4

Please sign in to comment.