Skip to content

jest/no-mocks-import Style

What it does

This rule reports imports from a path containing a mocks component.

Example

javascript
import thing from "./__mocks__/index";
require("./__mocks__/index");
require("__mocks__");

References

Released under the MIT License.