{"library":"node-test-github-reporter","title":"Node.js Test Runner GitHub Reporter","description":"node-test-github-reporter is a utility designed to integrate the native Node.js test runner results directly into GitHub's Pull Request checks and annotations. It processes the test output from the Node.js `--test` command and formats it for visibility within the GitHub UI, providing a quick overview of test outcomes and detailed inline annotations for failures. The package is currently stable at version 1.3.1 and appears to follow a frequent patch/minor release cadence, primarily driven by dependency updates. Its key differentiator is its seamless integration with the built-in Node.js test runner, requiring no additional testing frameworks, and its focus on improving developer experience within GitHub workflows by making test results immediately visible and actionable. It aims to streamline CI feedback loops for Node.js projects utilizing the native test runner.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install node-test-github-reporter"],"cli":null},"imports":["node --test --test-reporter node-test-github-reporter","node --test --test-reporter spec --test-reporter-destination stdout --test-reporter node-test-github-reporter --test-reporter-destination stdout"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { test } from 'node:test';\nimport { strict as assert } from 'node:assert';\n\n// Create a simple test file, e.g., 'test.js'\ntest('synchronous passing test', (t) => {\n  assert.strictEqual(1, 1, '1 should equal 1');\n});\n\ntest('asynchronous failing test', async (t) => {\n  await new Promise(resolve => setTimeout(resolve, 50));\n  assert.strictEqual(1, 2, '1 should not equal 2');\n});\n\n// Run the tests with the GitHub reporter\n// In your package.json, add a script:\n// \"test:github\": \"node --test --test-reporter node-test-github-reporter\"\n// Then run: npm run test:github\n// Or directly via CLI:\n// node --test --test-reporter node-test-github-reporter\n","lang":"javascript","description":"Demonstrates setting up a basic Node.js test file and executing it with the `node-test-github-reporter` to integrate results with GitHub Actions checks.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}