Skip to content

Commit 738e626

Browse files
committed
feat: warn for any (in tests)
1 parent 42d7cb7 commit 738e626

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@
8383
}
8484
}
8585
],
86-
"@typescript-eslint/no-explicit-any": ["warn"]
86+
"@typescript-eslint/no-explicit-any": [
87+
"warn"
88+
]
8789
}
8890
},
8991
"jest": {

src/__tests__/loader.test.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ describe('loader', () => {
4747
})
4848

4949
test("resolved with basic config", async () => {
50-
// const nodeImportMapPath = 'test/node.importmap';
51-
// (jest.mocked(config).nodeImportMapPath as any) = nodeImportMapPath;
52-
// (jest.mocked(config).cacheMap as any) = (new Map() as any).mockImplementation(() => ({
53-
// get: jest.fn().mockReturnValue(undefined),
54-
// }));
5550
const checkIfNodeOrFileProtocolSpy = jest.spyOn(utils, 'checkIfNodeOrFileProtocol').mockReturnValue(true);
5651
const context = { parentURL: "parentURL" };
5752
await resolve(specifier, context, nextResolve);

0 commit comments

Comments
 (0)