Skip to content

Commit 12135fb

Browse files
committed
Create a testing library for ui-extensions (proof of concept)
1 parent 4fbf529 commit 12135fb

17 files changed

Lines changed: 856 additions & 0 deletions

File tree

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
"options": {
1313
"printWidth": 50
1414
}
15+
},
16+
{
17+
"files": [
18+
"packages/ui-extensions-tester/**/README.md"
19+
],
20+
"options": {
21+
"printWidth": 50
22+
}
1523
}
1624
]
1725
}

AGENTS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# AGENTS.md
2+
3+
After every change, you must:
4+
5+
1. **Run `yarn build`** — rebuild any changed packages.
6+
2. **Run relevant tests** — ensure all affected test suites pass.
7+
3. **Check for type errors** — run the TypeScript compiler to verify there are no type errors.
8+
4. **Check for lint and formatting errors** — run the linter and formatter to ensure code quality.
9+
10+
## Working on ui-extensions-tester
11+
12+
Follow the instructions in [packages/ui-extensions-tester/AGENTS.md](packages/ui-extensions-tester/AGENTS.md).

examples/testing/checkout-basic-testing-example/extensions/checkout-basic-testing-example/dist/checkout-basic-testing-example.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/testing/checkout-basic-testing-example/extensions/checkout-basic-testing-example/dist/checkout-basic-testing-example.js.map

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/testing/point-of-sale-testing-example/extensions/point-of-sale-testing-example/dist/point-of-sale-testing-example.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/testing/point-of-sale-testing-example/extensions/point-of-sale-testing-example/dist/point-of-sale-testing-example.js.map

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# AGENTS.md
2+
3+
After every change, run the relevant test suites in `examples/testing/*` to verify that example tests still pass.
4+
5+
Keep documentation up to date in both the package README (`packages/ui-extensions-tester/README.md`) and each surface-specific README:
6+
7+
- `packages/ui-extensions-tester/src/admin/README.md`
8+
- `packages/ui-extensions-tester/src/checkout/README.md`
9+
- `packages/ui-extensions-tester/src/customer-account/README.md`
10+
- `packages/ui-extensions-tester/src/point-of-sale/README.md`
11+
12+
Any change to exports, function signatures, or behavior must be reflected in the relevant docs.
13+
14+
Code blocks in README files are formatted at print width 50 via the root `.prettierrc` override. Run `npx prettier --write` on any changed README.

0 commit comments

Comments
 (0)