Skip to content

← All questions

Factory "user" not found, hint says Known factories: (none), but the file exports it

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

gherkin
Given I generate a "user" from the factory as "newUser"
text
DATASET_NOT_FOUND: Factory "user" not found.
  hint: Known factories: (none). Define it in data/factories.ts.

projects/shop/data/factories.ts exists and exports a user. The hint even names the file it says I should create.

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related