Set up comprehensive frontend testing infrastructure
- 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>
This commit is contained in:
53
frontend/node_modules/identity-obj-proxy/package.json
generated
vendored
Normal file
53
frontend/node_modules/identity-obj-proxy/package.json
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"name": "identity-obj-proxy",
|
||||
"version": "3.0.0",
|
||||
"description": "an identity object using ES6 proxies",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"lint": "eslint src",
|
||||
"test": "node --harmony_proxies node_modules/.bin/jest",
|
||||
"coverage": "node --harmony_proxies node_modules/.bin/jest --coverage",
|
||||
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls",
|
||||
"prepublish": "npm run lint && npm run test"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/keyanzhang/identity-obj-proxy.git"
|
||||
},
|
||||
"keywords": [
|
||||
"proxy",
|
||||
"proxies",
|
||||
"identity",
|
||||
"jest",
|
||||
"mock"
|
||||
],
|
||||
"author": "Keyan Zhang <root@keyanzhang.com> (http://keya.nz)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/keyanzhang/identity-obj-proxy/issues"
|
||||
},
|
||||
"homepage": "https://github.com/keyanzhang/identity-obj-proxy#readme",
|
||||
"dependencies": {
|
||||
"harmony-reflect": "^1.4.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-core": "^6.11.4",
|
||||
"babel-jest": "^14.1.0",
|
||||
"babel-preset-es2015": "^6.9.0",
|
||||
"babel-preset-stage-0": "^6.5.0",
|
||||
"coveralls": "^2.11.12",
|
||||
"eslint": "^3.2.2",
|
||||
"eslint-config-airbnb-base": "^5.0.1",
|
||||
"eslint-plugin-import": "^1.12.0",
|
||||
"jest-cli": "^14.1.0"
|
||||
},
|
||||
"jest": {
|
||||
"automock": false,
|
||||
"testPathDirs": [
|
||||
"<rootDir>/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user