RepositoryTypeScript
factory-js

factory-js/factory-js

🏭 The object generator for testing.

86sao
1fork
2issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: seeding

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: drizzle-orm

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: factory

#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.

RepositoryTypeScript
microsoft/playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

101.5k
Dec 1, 2026
RepositoryTypeScript
artilleryio/artillery

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.

9.1k
Oct 20, 2026
RepositoryTypeScript
AmanVarshney01/create-better-t-stack

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

5.9k
Nov 30, 2026
RepositoryTypeScript
marchaos/jest-mock-extended

Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended

908
Oct 8, 2026
RepositoryGo
keploy/keploy

Open-source platform for creating safe, isolated production sandboxes for API, integration, and E2E testing.

20.0k
Dec 1, 2026
RepositoryJava
mockito/mockito

Most popular Mocking framework for unit tests written in Java

15.5k
Nov 26, 2026
RepositoryRuby
thoughtbot/factory_bot

A library for setting up Ruby objects as test data.

8.2k
Nov 26, 2026
RepositoryElixir
elixirs/faker

Faker is a pure Elixir library for generating fake data.

1.2k
Dec 2, 2026
RepositoryElixir
GesJeremie/faker-elixir

[unmaintained] FakerElixir generates fake data for you.

150
May 22, 2022