-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: load default config when creating a project (#471)
* fix malformed JSON in default config (...), load default config when creating project in mapeo manager * use `new URL(configPath, import.meta.url).pathname` to resolve config path * rename .zip to .mapeoconfig, add tests for default config * fix wrong path to default config * fix test with wrong num of icons, add assert for number of variants * add assertions to check correctly loading default config * `dataType.delete` now needs a `docId`, not a `versionId` * add e2e tests that checks importing config: 1. check default config against the project config 2. check custom config agains explicitly loaded custom config * fix order of execution in tests * add completeConfig zip to fixtures * add `defaultConfigPath` to managerBasic opts additionally * rollback changes in e2e since be can skip loading a config * create `getExpectedConfig` helper in `test-e2e/utils.js` * * Use absolute path for configs * move loading of config on top of test * remove unnecessary loading of config * await subtests in `test-e2e/manager-basic.js` * delete commented code * move manager-basic config subtests to their own test * change tests string and move loading of config into subtest --------- Co-authored-by: Tomás Ciccola <[email protected]>
- Loading branch information
1 parent
dba64ee
commit 48f0f7e
Showing
7 changed files
with
174 additions
and
24 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
Binary file not shown.