Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

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";