Skip to main content

run-pinpoint-node-agent

Run the pinpoint-node-agent test suite, a single test file, lint, or coverage locally. Use when asked to run, test, lint, or check coverage for the agent, or to confirm a change works before a PR. Library package; Tape tests, testcontainers for integration tests.

Informations de source

Dépôt
pinpoint-apm/pinpoint-node-agent
Dernière activité de la source
30 septembre 2026 à 04:48
Langue détectée de SKILL.md
anglais
Étoiles
63
Forks
11

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
name
run-pinpoint-node-agent
description
Run the pinpoint-node-agent test suite, a single test file, lint, or coverage locally. Use when asked to run, test, lint, or check coverage for the agent, or to confirm a change works before a PR. Library package; Tape tests, testcontainers for integration tests.
# Run pinpoint-node-agent pinpoint-node-agent is a library, not a server. "Running" it means running its Tape tests. Run commands from the repo root. ## Prerequisites - `npm install` done. - Docker running for integration tests in `test/instrumentation/module/` (testcontainers: MongoDB, MySQL, PostgreSQL, Redis). ## Tests ```bash # Single file, while iterating npx tape test/path/to/file.test.js # Files matching a pattern npx tape -i .testignore 'test/instrumentation/**/*.test.js' # Full suite, before a PR npm test ``` ## Lint ```bash npm run lint ``` Writes results to `checkstyle-result.xml` and always exits 0, so read the file to see violations. ## Coverage ```bash npm run coverage ``` nyc prints a text summary and writes lcov to `coverage/`.
Voir sur GitHub