Agent Skills
› webiny/webiny-js
› tester
tester
GitHub指导如何运行单包测试,区分DDB与OpenSearch环境。根据ci.config.json配置选择yarn test或yarn test:os命令,并提供更新列表的方法。
Trigger Scenarios
需要运行特定包的单元测试时
不确定某包应使用哪种测试命令时
Install
npx skills add webiny/webiny-js --skill tester -g -y
SKILL.md
Frontmatter
{
"name": "tester",
"description": "Use when running tests. Shows how to run tests for a single package, including OpenSearch (ddb-os) tests when applicable.",
"user_invocable": true
}
Running Tests
DDB-only tests (default)
yarn test packages/<package-name>
OpenSearch (ddb-os) tests
yarn test:os packages/<package-name>
Which command to use
Determine which commands to run based on the package. Source of truth: the storageOps key in each package's ci.config.json.
Packages that need BOTH yarn test AND yarn test:os
These packages have storageOps: ["ddb", "ddb-os,ddb"]:
api-acoapi-audit-logsapi-file-managerapi-file-manager-acoapi-headless-cmsapi-headless-cms-acoapi-headless-cms-bulk-actionsapi-headless-cms-import-exportapi-mailerapi-schedulerapi-workflowstaskstesting
Packages that need ONLY yarn test:os (no standalone ddb)
These packages have storageOps: ["ddb-os,ddb"] (no separate "ddb" entry):
api-dynamodb-to-elasticsearchapi-elasticsearch-tasksapi-headless-cms-ddb-esapi-headless-cms-es-tasksapi-opensearch
All other packages — yarn test only
If a package is not listed above, run only yarn test.
Keeping this list up to date
If the list seems stale, re-derive it:
# Packages with ddb-os support
grep -rl "ddb-os" --include="ci.config.json" packages/ | sort
# Then check each file's storageOps to see if "ddb" is also present
Version History
- 80eb1c5 Current 2026-08-20 10:06


