Files
tictactoe/package.json
duynguyen 4d5657f259 feat: split Install/UnitTest stages, add game.js tests with 100% coverage
21 tests covering win/loss/draw/score/reset. lcov report fed to SonarQube.
Pipeline: Install → Unit Test → Scan Code Quality → Build & Push.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 16:10:27 +07:00

24 lines
512 B
JSON

{
"name": "tictactoe",
"version": "1.0.0",
"description": "TicTacToe web game",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "jest --coverage"
},
"dependencies": {
"express": "^4.18.2"
},
"devDependencies": {
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"supertest": "^6.3.3"
},
"jest": {
"collectCoverageFrom": ["index.js", "public/game.js"],
"coverageReporters": ["lcov", "text"],
"coverageDirectory": "coverage"
}
}