- Install Jest for unit testing with React Testing Library - Install Playwright for end-to-end testing - Configure Jest with proper TypeScript support and module mapping - Create test setup files and utilities for both unit and e2e tests Components: * Jest configuration with coverage thresholds * Playwright configuration with browser automation * Unit tests for LoginForm, AuthContext, and useSocketIO hook * E2E tests for authentication, dashboard, and agents workflows * GitHub Actions workflow for automated testing * Mock data and API utilities for consistent testing * Test documentation with best practices Testing features: - Unit tests with 70% coverage threshold - E2E tests with API mocking and user journey testing - CI/CD integration for automated test runs - Cross-browser testing support with Playwright - Authentication system testing end-to-end 🚀 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
829 B
JSON
40 lines
829 B
JSON
{
|
|
"name": "stack-utils",
|
|
"version": "2.0.6",
|
|
"description": "Captures and cleans stack traces",
|
|
"license": "MIT",
|
|
"repository": "tapjs/stack-utils",
|
|
"author": {
|
|
"name": "James Talmage",
|
|
"email": "james@talmage.io",
|
|
"url": "github.com/jamestalmage"
|
|
},
|
|
"engines": {
|
|
"node": ">=10"
|
|
},
|
|
"scripts": {
|
|
"test": "tap",
|
|
"preversion": "npm test",
|
|
"postversion": "npm publish",
|
|
"prepublishOnly": "git push origin --follow-tags"
|
|
},
|
|
"tap": {
|
|
"check-coverage": true
|
|
},
|
|
"files": [
|
|
"index.js"
|
|
],
|
|
"dependencies": {
|
|
"escape-string-regexp": "^2.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"bluebird": "^3.7.2",
|
|
"coveralls": "^3.0.9",
|
|
"nested-error-stacks": "^2.1.0",
|
|
"pify": "^4.0.1",
|
|
"q": "^1.5.1",
|
|
"source-map-support": "^0.5.20",
|
|
"tap": "^16.3.0"
|
|
}
|
|
}
|