payment apps: add support for supported buyer contexts
WHY are these changes introduced?
Fixes #0000
WHAT is this pull request doing?
How to test your changes?
Post-release steps
Measuring impact
How do we know this change was effective? Please choose one:
- [ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
- [ ] Existing analytics will cater for this addition
- [ ] PR includes analytics changes to measure impact
Checklist
- [ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
- [ ] I've considered possible documentation changes
- [ ] I've made sure that any changes to
devordeployhave been reflected in the internal flowchart.
Coverage report
St.:grey_question: |
Category | Percentage | Covered / Total |
|---|---|---|---|
| π‘ | Statements | 71.96% (+0.13% πΌ) |
7034/9775 |
| π‘ | Branches | 68.79% (-0.33% π») |
3483/5063 |
| π‘ | Functions | 71.44% (-0.03% π») |
1881/2633 |
| π‘ | Lines | 73.27% (+0.18% πΌ) |
6632/9051 |
Show new covered files π£
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π΄ | ... / shopify-developers-client.ts |
1.65% | 0% | 0% | 1.74% |
| π’ | ... / active-app-release.ts |
100% | 100% | 100% | 100% |
| π’ | ... / apps.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-app-version.ts |
100% | 100% | 100% | 100% |
| π’ | ... / create-app.ts |
100% | 100% | 100% | 100% |
| π’ | ... / organization.ts |
100% | 100% | 100% | 100% |
| π’ | ... / organizations.ts |
100% | 100% | 100% | 100% |
| π’ | ... / release-version.ts |
100% | 100% | 100% | 100% |
| π’ | ... / user-info.ts |
100% | 100% | 100% | 100% |
| π’ | ... / shopify-developers.ts |
100% | 75% | 100% | 100% |
Show files with reduced coverage π»
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π’ | ... / app.test-data.ts |
93.06% (-0.04% π») |
92.94% (-0.47% π») |
83.56% | 92.55% (-0.05% π») |
| π’ | ... / app.ts |
86.21% (-0.94% π») |
74.12% (+1.39% πΌ) |
89.36% (-1.75% π») |
87.5% (-1.21% π») |
| π’ | ... / identifiers.ts |
100% (+4.08% πΌ) |
88.24% (-0.34% π») |
100% | 100% |
| π’ | ... / loader.ts |
93.04% (-0.52% π») |
86.78% (-0.72% π») |
95% (-0.41% π») |
94.03% (-0.43% π») |
| π’ | ... / extension-instance.ts |
85.71% (-0.21% π») |
77.55% (-0.88% π») |
91.11% | 87.1% (-0.2% π») |
| π’ | ... / config.ts |
91.18% (-1.68% π») |
75% (-10.71% π») |
90% (+1.11% πΌ) |
96.43% (+0.78% πΌ) |
| π’ | ... / generate.ts |
100% | 78.13% (-1.88% π») |
100% | 100% |
| π’ | ... / write-app-configuration-file.ts |
95% (-0.12% π») |
89.29% (-3.31% π») |
100% | 97.3% (-0.07% π») |
| π’ | ... / link.ts |
96.1% (-0.41% π») |
72.73% (-19.21% π») |
100% | 95.89% (-0.5% π») |
| π’ | ... / breakdown-extensions.ts |
96.43% (-0.12% π») |
82.69% (-0.64% π») |
100% | 100% |
| π’ | ... / id-matching.ts |
98.77% (-0.18% π») |
75% (-9.62% π») |
100% | 100% |
| π’ | ... / select-app.ts |
92.86% (-0.48% π») |
75% | 100% | 100% |
| π’ | ... / extension.ts |
91.21% (-0.1% π») |
74.51% (+0.92% πΌ) |
91.67% | 90.91% (-0.1% π») |
| π’ | ... / fetch-extension-specifications.ts |
95.65% (-1.01% π») |
87.5% (+7.5% πΌ) |
100% | 100% |
| π΄ | ... / developer-platform-client.ts |
40% (+3.64% πΌ) |
28.57% (-2.68% π») |
50% (-10% π») |
41.67% (+4.82% πΌ) |
Test suite run success
1655 tests passing in 767 suites.
Report generated by π§ͺjest coverage report action from 894b551efead0a0da180c7b17b947265001ad222
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.
@punkstar something to also keep in mind is that the minimum required CLI version for payments app extension support is v3.60. Your PR changes would only be applicable to future CLI version releases (soonest being May 27th)
Thanks for the feedback @marklevi! I've added some tests around the TOML generation to cover the new field and I've top hatted the import extension command. All looks fine!