Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 317 Bytes

no-relative-import-in-test.md

File metadata and controls

15 lines (10 loc) · 317 Bytes

no-relative-import-in-test

A test file should not contain relative imports; it should use a global import of the library using module resolution.

Bad:

import foo from "./index.d.ts";

Good:

import foo from "foo";