facebook / facebook/flow

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

Aperta
#3,687 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
22.3k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.