Download ponytail/tests/copilot-plugin.test.js from smlflg/CodingAgent: direct link, hf CLI and curl.
- Browser
- Download file 1.05 kB
-
https://huggingface.co/smlflg/CodingAgent/resolve/main/ponytail/tests/copilot-plugin.test.js
- Command line
-
hf download hf://smlflg/CodingAgent/ponytail/tests/copilot-plugin.test.js
-
curl -L -o copilot-plugin.test.js https://huggingface.co/smlflg/CodingAgent/resolve/main/ponytail/tests/copilot-plugin.test.js
1.05 kB
| // Smoke test for the Copilot plugin adapter: keep command wiring minimal and | |
| // ensure the debt command is part of the shared command surface. | |
| const test = require('node:test'); | |
| const assert = require('node:assert/strict'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const root = path.join(__dirname, '..'); | |
| const REQUIRED_COMMAND_FILES = [ | |
| 'ponytail.toml', | |
| 'ponytail-review.toml', | |
| 'ponytail-audit.toml', | |
| 'ponytail-debt.toml', | |
| 'ponytail-gain.toml', | |
| 'ponytail-help.toml', | |
| ]; | |
| function readJSON(relPath) { | |
| return JSON.parse(fs.readFileSync(path.join(root, relPath), 'utf8')); | |
| } | |
| test('copilot plugin command directory includes ponytail-debt', () => { | |
| const manifest = readJSON('.github/plugin/plugin.json'); | |
| assert.equal(manifest.name, 'ponytail'); | |
| assert.equal(manifest.commands, 'commands/'); | |
| for (const file of REQUIRED_COMMAND_FILES) { | |
| assert.ok( | |
| fs.existsSync(path.join(root, manifest.commands, file)), | |
| `missing command file: ${manifest.commands}${file}`, | |
| ); | |
| } | |
| }); | |