- 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>
79 lines
2.6 KiB
JSON
79 lines
2.6 KiB
JSON
{
|
|
"name": "unrs-resolver",
|
|
"version": "1.11.1",
|
|
"type": "commonjs",
|
|
"description": "UnRS Resolver Node API with PNP support",
|
|
"repository": "git+https://github.com/unrs/unrs-resolver.git",
|
|
"homepage": "https://github.com/unrs/unrs-resolver#readme",
|
|
"author": "JounQin <admin@1stg.me> (https://www.1stG.me)",
|
|
"funding": "https://opencollective.com/unrs-resolver",
|
|
"license": "MIT",
|
|
"main": "index.js",
|
|
"browser": "browser.js",
|
|
"files": [
|
|
"browser.js",
|
|
"index.d.ts",
|
|
"index.js"
|
|
],
|
|
"scripts": {
|
|
"postinstall": "napi-postinstall unrs-resolver 1.11.1 check"
|
|
},
|
|
"dependencies": {
|
|
"napi-postinstall": "^0.3.0"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org",
|
|
"access": "public"
|
|
},
|
|
"napi": {
|
|
"binaryName": "resolver",
|
|
"packageName": "@unrs/resolver-binding",
|
|
"wasm": {
|
|
"browser": {
|
|
"fs": true
|
|
}
|
|
},
|
|
"targets": [
|
|
"x86_64-pc-windows-msvc",
|
|
"aarch64-pc-windows-msvc",
|
|
"i686-pc-windows-msvc",
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-unknown-linux-musl",
|
|
"x86_64-unknown-freebsd",
|
|
"aarch64-linux-android",
|
|
"aarch64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-musl",
|
|
"armv7-linux-androideabi",
|
|
"armv7-unknown-linux-gnueabihf",
|
|
"armv7-unknown-linux-musleabihf",
|
|
"powerpc64le-unknown-linux-gnu",
|
|
"riscv64gc-unknown-linux-gnu",
|
|
"riscv64gc-unknown-linux-musl",
|
|
"s390x-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"aarch64-apple-darwin",
|
|
"wasm32-wasip1-threads"
|
|
]
|
|
},
|
|
"optionalDependencies": {
|
|
"@unrs/resolver-binding-win32-x64-msvc": "1.11.1",
|
|
"@unrs/resolver-binding-win32-arm64-msvc": "1.11.1",
|
|
"@unrs/resolver-binding-win32-ia32-msvc": "1.11.1",
|
|
"@unrs/resolver-binding-linux-x64-gnu": "1.11.1",
|
|
"@unrs/resolver-binding-linux-x64-musl": "1.11.1",
|
|
"@unrs/resolver-binding-freebsd-x64": "1.11.1",
|
|
"@unrs/resolver-binding-android-arm64": "1.11.1",
|
|
"@unrs/resolver-binding-linux-arm64-gnu": "1.11.1",
|
|
"@unrs/resolver-binding-linux-arm64-musl": "1.11.1",
|
|
"@unrs/resolver-binding-android-arm-eabi": "1.11.1",
|
|
"@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1",
|
|
"@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1",
|
|
"@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1",
|
|
"@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1",
|
|
"@unrs/resolver-binding-linux-riscv64-musl": "1.11.1",
|
|
"@unrs/resolver-binding-linux-s390x-gnu": "1.11.1",
|
|
"@unrs/resolver-binding-darwin-x64": "1.11.1",
|
|
"@unrs/resolver-binding-darwin-arm64": "1.11.1",
|
|
"@unrs/resolver-binding-wasm32-wasi": "1.11.1"
|
|
}
|
|
} |