factory-js/factory-js
🏭 The object generator for testing.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tháng
#1 Repository của tháng
#1 Repository của tháng
🏭 FactoryJS: Sinh đối tượng test nhanh, gọn, không dependency
FactoryJS là bộ sinh đối tượng (object generator) dành cho testing, hỗ trợ type safety và tích hợp ORM.
FactoryJS là một thư viện TypeScript nhẹ, không phụ thuộc bên ngoài, giúp sinh object test nhanh chóng. Hỗ trợ .define, .build, .create, traits, vars, seq, later... Tích hợp sẵn plugin Prisma.
✨ Điểm nổi bật
- Type Safety: Phát hiện lỗi cấu hình, typo ngay thời điểm biên dịch
- Flexible: Hỗ trợ vars, traits, tính toán property phụ thuộc
- Zero Dependencies: Không bất kỳ dependency nào
- ORM-Friendly: Tích hợp Prisma, Drizzle, hoặc bất kỳ ORM nào
- Prisma Plugin: Tự động sinh factory từ schema
💡 Vì sao đáng chú ý
FactoryJS không ép buộc ORM cụ thể, chỉ cần truyền hàm lưu. Plugin Prisma tự động sinh factory từ schema. Phù hợp test unit, integration, E2E.
#TypeScript #Testing #Factory #Prisma #Drizzle #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations
Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended
Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.