add test ci script

This commit is contained in:
Pritimay Sarkar
2024-01-21 11:38:34 +05:30
parent d327fecf8c
commit b69791c246
8 changed files with 10336 additions and 3226 deletions

View File

@@ -37,7 +37,8 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"deploy": "npm run build && firebase deploy",
"coverage": "react-scripts test --coverage"
"coverage": "react-scripts test --coverage",
"test-ci": "jest --testPathIgnorePatterns=src/tests/ --passWithNoTests --ci --bail"
},
"eslintConfig": {
"extends": [
@@ -58,7 +59,13 @@
]
},
"devDependencies": {
"@babel/core": "^7.23.7",
"@babel/preset-env": "^7.23.8",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
"csv-parser": "^3.0.0",
"html-pdf-node": "^1.0.8"
"html-pdf-node": "^1.0.8",
"jest-environment-jsdom": "^29.7.0",
"ts-jest": "^29.1.1"
}
}