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

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related