Commit Graph

7 Commits

Author SHA1 Message Date
Ryan Laughlin
15ff99bc9e
Start to fix tests + add more factories (#334)
* Stop using npm run migrate:reset in tests

* Begin moving other existing fixtures to factories

* Update cypress/support/index.ts

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>

* Clean up usage of _.sample

* Rename files

* Remove incomplete building of associations

* Add missing references to calendarEvent

* Remove inaccurate seeds

* Add explicit lodash devDependency

Co-authored-by: Kalle <38327916+Sendouc@users.noreply.github.com>
2021-04-01 23:32:19 +03:00
Ryan Laughlin
bf30c025f8
Use a factory to create seed data (#315)
* Add fishery for factory creation

* Refactor existing seed file

* Create a UserFactory to seed user data

* Make fishery a devDependency

* Prefer const over let

* Eliminate the dropAllData method

* Move factory files to prisma/factories

* Update UserFactory to return valid discordAvatar value
2021-03-31 12:01:16 +03:00
Kalle
4d2908b9a8 can add suggestion comment + tests 2021-02-25 15:40:39 +02:00
Kalle
b26b0bca50 cypress mock login 2021-02-25 13:28:58 +02:00
Kalle
a30dcc394f cypress initial 2021-02-18 10:12:50 +02:00
Kalle (Sendou)
9d6f5731f9 remove unused 2021-01-30 12:38:46 +02:00
Kalle (Sendou)
160d5f0108 initial cypress tests 2020-10-17 20:45:02 +03:00