Socket
Book a DemoInstallSign in
Socket

@aristobyte-ui/jest-config

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aristobyte-ui/jest-config

Centralized, shareable Jest configuration presets for AristoByteUI monorepo projects. Supports Node, React, and Next.js environments with TypeScript, Babel integration, and consistent coverage reporting.

1.0.30
latest
Source
npmnpm
Version published
Weekly downloads
1.5K
184.7%
Maintainers
1
Weekly downloads
 
Created
Source

@aristobyte-ui/jest-config

TypeScript Jest Testing Library React Support Next.js Support Node.js >=20.17.0 Yarn >=1.22 NPM >=10.8

Centralized, shareable Jest configuration presets for AristoByteUI monorepo projects, supporting Node, React, and Next.js environments.

📦 Installation

# Install via Yarn
yarn add -D @aristobyte-ui/jest-config

# Or via npm
npm install -D @aristobyte-ui/jest-config

# Or via pnpm
pnpm add -D @aristobyte-ui/jest-config

🛠 Usage

Base config (Node environment):

import { config } from "@aristobyte-ui/jest-config/base";
export default config;

React config (includes Testing Library):

import { config } from "@aristobyte-ui/jest-config/react";
export default config;

Next.js config (includes React + moduleNameMapper for CSS/Assets):

import { config } from "@aristobyte-ui/jest-config/next";
export default config;

📂 Presets Available

  • base → Node-first Jest configuration with TypeScript & Babel integration.
  • react → Extends base with jsdom environment and Testing Library setup.
  • next → Extends react with moduleNameMapper and CSS/asset mocking for Next.js.

🔧 Example in a Package

{
  "name": "@aristobyte-ui/button",
  "version": "1.0.0",
  "scripts": {
    "test": "jest --config jest.config.js"
  },
  "devDependencies": {
    "@aristobyte-ui/jest-config": "*",
    "jest": "^29.0.0",
    "@testing-library/jest-dom": "^6.0.0"
  }
}

And jest.config.js:

import { config } from "@aristobyte-ui/jest-config/react";
export default config;

📊 Why This Matters

FeatureBenefit
Base configNode-first, TypeScript-ready testing
React supportjsdom environment + Testing Library integration
Next.js supportModule mapping for CSS/Assets + React integration
Coverage configCentralized coverage reporting and ignore patterns
Monorepo-readyConsistent Jest behavior across packages
Babel & TS integrationCompile TS & modern JS seamlessly

🏆 Philosophy

At AristoByte, testing is foundational for reliability and team scalability.
These configs empower developers to write consistent, predictable, and maintainable tests across the monorepo.

📜 License

MIT © AristoByte

🛡 Shields Showcase

Keywords

jest

FAQs

Package last updated on 30 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.