dtslint/docs/no-relative-import-in-test.md

317 B

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