- display.test.js: Added vitest import to afterEach - fetcher.test.js: Changed from mock axios to mock child_process.execSync - fetcher.test.js: Added mock cache.js to avoid caching interference with tests - fetcher.test.js: Changed network failure test to expect null return
31 lines
623 B
JSON
31 lines
623 B
JSON
{
|
|
"name": "javdict",
|
|
"version": "1.2.6",
|
|
"description": "AV番号命令行查询工具",
|
|
"main": "./index.js",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "node index.js",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"test:coverage": "vitest run --coverage"
|
|
},
|
|
"bin": {
|
|
"jav": "./index.js"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.6.0",
|
|
"chalk": "^5.3.0",
|
|
"cheerio": "^1.0.0",
|
|
"commander": "^12.0.0",
|
|
"ora": "^8.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@vitest/coverage-v8": "^1.0.0",
|
|
"vitest": "^1.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"license": "MIT"
|
|
} |