Docs for testing the API (#10275)

* mock-knex

* test on the migrations run started.

* test passing for run.up()

* reorganize /tests/ to allow integration tests

* e2e setup changes

* e2e jest.config moved

* e2e paths fixed, integration config

* add nonadmin role and user seed+migration

* auth/login w/ documentation (docs will be moved)

* update user seed

* add postgres10 to the ci?

* argon2 saves the day

* items tests passing with postgres10 support

* removed comments

* move generateHash out of directus_users

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>
This commit is contained in:
Jay Cammarano
2021-12-10 14:58:51 -05:00
committed by GitHub
parent f6264371ef
commit 00a838f020
32 changed files with 354 additions and 93 deletions

View File

@@ -55,9 +55,10 @@ npx directus database install
Installs the initial Directus system tables on an empty database. Used internally by `bootstrap`.
It should be used only in specific cases, e.g. when you want to run something between `install` and `migrate`. You probably should call `directus database migrate:latest` afterwards manually.
It should be used only in specific cases, e.g. when you want to run something between `install` and `migrate`. You
probably should call `directus database migrate:latest` afterwards manually.
You may want to use `directus bootstrap` instead.
You may want to use `directus bootstrap` instead.
### Upgrade the Database