-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π Ensure core schemas are loaded before dependent snapshot schemas (#431
) * β¨ Allow replacing existing schemas * β» Update schema registration pattern * π Ensure core schemas are loaded before dependent snapshot schemas
- Loading branch information
Wil Wilsman
authored
Jul 20, 2021
1 parent
d62f5eb
commit fc806fc
Showing
10 changed files
with
74 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import PercyConfig from '@percy/config'; | ||
import { schema, migration } from '@percy/core/dist/config'; | ||
import * as CoreConfig from '@percy/core/dist/config'; | ||
|
||
// ensures the core schema and migration is loaded | ||
export default function() { | ||
PercyConfig.addSchema(schema); | ||
PercyConfig.addMigration(migration); | ||
PercyConfig.addSchema(CoreConfig.schemas); | ||
PercyConfig.addMigration(CoreConfig.migration); | ||
} |
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 |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import PercyConfig from '@percy/config'; | ||
import { | ||
schema, | ||
snapshotListSchema, | ||
migration | ||
} from '../config'; | ||
import * as CoreConfig from '@percy/core/dist/config'; | ||
import * as SnapshotConfig from '../config'; | ||
|
||
export default function() { | ||
PercyConfig.addSchema(schema); | ||
PercyConfig.addSchema(snapshotListSchema); | ||
PercyConfig.addMigration(migration); | ||
PercyConfig.addSchema(CoreConfig.schemas); | ||
PercyConfig.addSchema(SnapshotConfig.schemas); | ||
PercyConfig.addMigration(SnapshotConfig.migration); | ||
} |
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,7 +1,7 @@ | ||
import PercyConfig from '@percy/config'; | ||
import { schema, migration } from '../config'; | ||
import * as UploadConfig from '../config'; | ||
|
||
export default function() { | ||
PercyConfig.addSchema(schema); | ||
PercyConfig.addMigration(migration); | ||
PercyConfig.addSchema(UploadConfig.schema); | ||
PercyConfig.addMigration(UploadConfig.migration); | ||
} |
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