Skip to content

← All questions

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

Asked 5,610 views2 answers
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.

asked by Lars Vinter276 ·

2 answers

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related