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:
3
frontend/node_modules/babel-preset-current-node-syntax/.github/FUNDING.yml
generated
vendored
Normal file
3
frontend/node_modules/babel-preset-current-node-syntax/.github/FUNDING.yml
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [nicolo-ribaudo]
|
||||
49
frontend/node_modules/babel-preset-current-node-syntax/.github/workflows/nodejs.yml
generated
vendored
Normal file
49
frontend/node_modules/babel-preset-current-node-syntax/.github/workflows/nodejs.yml
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
||||
|
||||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version:
|
||||
[
|
||||
"10.0",
|
||||
"10.19",
|
||||
"12.4",
|
||||
"12.8",
|
||||
"13.11",
|
||||
"14.3",
|
||||
"14",
|
||||
"15",
|
||||
"16.10",
|
||||
"16.11",
|
||||
"17",
|
||||
"18.19",
|
||||
"18.20",
|
||||
"19",
|
||||
"20.9",
|
||||
"20.10",
|
||||
"21",
|
||||
"22",
|
||||
]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js latest
|
||||
uses: actions/setup-node@v1
|
||||
- run: npm install
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm test
|
||||
Reference in New Issue
Block a user