facebook / facebook/flow

module.name_mapper.extension: Not working for stub folder named "__mocks__"

Open
#3,687 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

I am using flow version 0.43.1

There are undocumented restrictions on naming folders which can be used to put stub files in for the option `module.name_mapper.extension`.

I had a folder named `/__mocks__` and the stubs were not found, resulting in a "required module not found" error.

Using e.g. `/flow-stubs` worked.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.