Download ponytail/tests/package-scripts.test.js from smlflg/CodingAgent: direct link, hf CLI and curl.
- Browser
- Download file 923 Bytes
-
https://huggingface.co/smlflg/CodingAgent/resolve/main/ponytail/tests/package-scripts.test.js
- Command line
-
hf download hf://smlflg/CodingAgent/ponytail/tests/package-scripts.test.js
-
curl -L -o package-scripts.test.js https://huggingface.co/smlflg/CodingAgent/resolve/main/ponytail/tests/package-scripts.test.js
923 Bytes
| const test = require('node:test'); | |
| const assert = require('node:assert/strict'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const root = path.join(__dirname, '..'); | |
| test('root npm test covers bundled subprojects', () => { | |
| const packageJson = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8')); | |
| assert.match(packageJson.scripts.test, /npm test --prefix pi-extension/); | |
| assert.match(packageJson.scripts.test, /npm test --prefix ponytail-mcp/); | |
| }); | |
| test('CI installs MCP dependencies before root npm test', () => { | |
| const workflow = fs.readFileSync(path.join(root, '.github', 'workflows', 'test.yml'), 'utf8'); | |
| assert.match(workflow, /npm install --prefix ponytail-mcp/); | |
| assert.ok( | |
| workflow.indexOf('npm install --prefix ponytail-mcp') < workflow.indexOf('npm test'), | |
| 'MCP dependencies must be installed before the root test command runs', | |
| ); | |
| }); | |