-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add basic pull, diff and push tests (#43)
* feat: add directus instance starter * feat: working test bed with sample tests * feat: add directus sync client * chore: run format and lint * chore: run format and lint * test: empty pull * test: empty pull * test: test empty pull mutations * chore: run prettier * feat: add test for empty instance * feat: add first pull test with data * feat: test pull of collections dashboards, flows, folders, operations, panels, permissions and roles * feat: test pull of collections presets, settings, translation and webhook * fix: file import * refactor: rename test basic * refactor: rename test basic * test: add 'Pull 2 times from an instance' tests * refactor: create utils folder * refactor: rename directus client test * test: add pull and push without changes * refactor: rename empty.spec.ts * test: add "preserve ids" and "pull flush and push" * test: fix some random failing tests * fix: revert package-lock.json * fix: remove unsupported node version from CI * fix: copy env file before tests * test: trigger cli programmatically * test: remove unstable helpers test * chore: add comment about debugging * fix: eslint config * ci: build before tests * ci: increase jest timeout for ci * ci: limit number of workers * test: migration from a server to another * fix: dependency issue on darwin-arm64 * fix: move dependency to dev * fix: remove @nx/nx-darwin-arm64 * feat: use jasmine and run sequentially (#49) * feat: allow import of directus-sync * feat: first working test on one process * chore: move directus instance to e2e * feat: tests working individually * chore: run prettier * chore: cleanup cli package and remove e2e tests * chore: cleanup api package * chore: cleanup e2e deps * chore: eslint config * feat: avoid multiple server at once * chore: prettier * feat(e2e): working test suite (sequentially) * chore(e2e): run prettier * test(e2e): fix pullAndPushWithoutChanges * build(e2e): fix ci * build(e2e): fix ci * chore: run prettier * fix: x64 dependencies * fix: x64 dependencies * fix: change ts config per test env * fix(e2e): append logs to file * feat(e2e): add pushOnEmptyInstance * feat(e2e): add pushOnEmptyInstance
- Loading branch information
1 parent
50330c2
commit 02a357c
Showing
115 changed files
with
38,614 additions
and
16,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": "./tsconfig.base.json", | ||
"compilerOptions": { | ||
"types": ["jest", "node"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ test/ | |
.env | ||
.gitignore | ||
example.env | ||
test.env | ||
jest.config.js | ||
tsconfig.json | ||
directus-sync.config.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#! /usr/bin/env node | ||
require('../dist'); | ||
const { run } = require('../dist'); | ||
void run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIRECTUS_URL=http://localhost:8055 | ||
DIRECTUS_TOKEN=xxxxxxxxxxxxx | ||
DIRECTUS_ADMIN_EMAIL=admin@example.com | ||
DIRECTUS_ADMIN_PASSWORD=password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.