Skip to content

Commit a78bd05

Browse files
committed
fix: back-compatibility of testing w/ Node v12
1 parent 10a1449 commit a78bd05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/lib/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import fs from "fs/promises";
1+
import { promises as fsPromises } from "fs";
22
import { resolve } from "path";
33
import rulebook from "../../lib/rules";
44
import { configs } from "../../lib";
55
import "jest-extended";
66

7+
const fs = fsPromises;
78
let rulesSpy: jest.SpyInstance;
89

910
beforeEach(() => {

0 commit comments

Comments
 (0)