Skip to content

Commit cdcf9d7

Browse files
ryancbahanclaude
andcommitted
Fix scopes test to expect raw value after scopes transform extraction
getAppConfigurationState returns raw config values in startingOptions; scopes normalization now happens at read time via getAppScopes(). Update the test assertion to match the raw TOML value. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9c0a300 commit cdcf9d7

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

packages/app/src/cli/models/app/loader.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3486,6 +3486,19 @@ describe('WebhooksSchema', () => {
34863486

34873487
describe('getAppConfigurationState', () => {
34883488
test.each([
3489+
[
3490+
`scopes = " write_xyz, write_abc "`,
3491+
{
3492+
state: 'template-only',
3493+
configSource: 'cached',
3494+
configurationFileName: 'shopify.app.toml',
3495+
appDirectory: expect.any(String),
3496+
configurationPath: expect.stringMatching(/shopify.app.toml$/),
3497+
startingOptions: {
3498+
scopes: ' write_xyz, write_abc ',
3499+
},
3500+
},
3501+
],
34893502
[
34903503
`client_id="abcdef"`,
34913504
{

0 commit comments

Comments
 (0)