Skip to content

Commit 9fdecb3

Browse files
CI path.resolve fix
1 parent 39b0142 commit 9fdecb3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/rules/independentModules/helpers/validateImport/helpers/validateAll/helpers/getImportPaths.test.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jest.mock("fs", () => ({
1717
}));
1818

1919
describe("getImportPaths", () => {
20+
afterEach(() => {
21+
jest.clearAllMocks();
22+
});
23+
24+
beforeEach(() => {
25+
jest.clearAllMocks();
26+
});
27+
2028
test.each<{
2129
importPath: string;
2230
paths?: Paths;
@@ -102,7 +110,7 @@ describe("getImportPaths", () => {
102110
])(
103111
"Should return correct value for %o",
104112
({ importPath, paths, resolve, expected }) => {
105-
jest.spyOn(path, "resolve").mockImplementationOnce(() => resolve);
113+
jest.spyOn(path, "resolve").mockImplementation(() => resolve);
106114

107115
expect(
108116
getImportPaths({

0 commit comments

Comments
 (0)