Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/fix-merge-env-snapshot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@graphcommerce/next-config': patch
---

Regenerate the `mergeEnvIntoConfig` snapshot so `yarn test` passes on
canary. The test input already feeds `GC_DEMO_MODE` and
`GC_STOREFRONT_<i>_HYGRAPH_LOCALES_0` into the env-schema parser, but
the snapshot it was compared against still reflected the pre-`demoMode`
/ pre-flattened-`hygraphLocales` schema, so every CI run since those
config fields were added has been failing the `test` job on every PR
with a snapshot mismatch unrelated to the PR's own changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

exports[`parses an env config object 1`] = `
{
"GC_DEMO_MODE": true,
"GC_STOREFRONT": [
{
"defaultLocale": true,
Expand All @@ -13,8 +14,10 @@ exports[`parses an env config object 1`] = `
},
],
"GC_STOREFRONT_0_DEFAULT_LOCALE": true,
"GC_STOREFRONT_0_HYGRAPH_LOCALES_0": "en",
"GC_STOREFRONT_0_LOCALE": "en",
"GC_STOREFRONT_0_MAGENTO_STORE_CODE": "en_us",
"GC_STOREFRONT_1_HYGRAPH_LOCALES_0": "de",
"GC_STOREFRONT_1_LOCALE": "de",
"GC_STOREFRONT_1_MAGENTO_STORE_CODE": "de_de",
}
Expand Down
Loading