Simple jest-easy is friendlier to monorepo mode support

Overview

jest-easy

Simple jest-easy is friendlier to monorepo mode support

Quickly

pnpm add jest-easy jest

add a command, the jest.config.js in the root directory is read

{
  ...,
  "scripts": {
    "test": "jest-easy",
    "test-args": "jest-easy xxx --xxx"
  },
  ...
}

like using jest ... just use it

Config

default config:

PS: the monorepo pattern will look for the jest.config.js in the more directory

{
  "collectCoverageFrom": [
    "src/**/*.{js,jsx,ts,tsx}",
    "!**/node_modules/**",
    "!**/fixtures/**",
    "!**/__test__/**",
    "!**/examples/**",
    "!**/typings/**",
    "!**/types/**",
    "!**/*.d.ts"
  ],
  "testPathIgnorePatterns": ["/node_modules/"],
  "moduleFileExtensions": ["js", "jsx", "ts", "tsx", "json"],
  "testMatch": ["**/?*.(test | 'spce').(j|t)s?(x)"],
  "verbose": true
}

want to fix an item?

module.exports = {
  // memo -> [
  // "src/**/*.{js,jsx,ts,tsx}",
  // "!**/node_modules/**",
  // "!**/fixtures/**",
  // "!**/__test__/**",
  // "!**/examples/**",
  // "!**/typings/**",
  // "!**/types/**",
  // "!**/*.d.ts"
  // ]
  collectCoverageFrom(memo) {
    return memo.concat(['!**/*.spec.{ts,tsx}'])
  },
  // The default values are directly replaced here
  // ["**/?*.(test | 'spce').(j|t)s?(x)"] to [`**/?*.test.(j|t)s?(x)`]
  testMatch: [`**/?*.test.(j|t)s?(x)`]
}
You might also like...

A template application for setting up a mobile app video game with IONIC, PHASER, ANGULAR and a Monorepo strategy

OpenForge Ionic Monorepo Example This is a template project for all you aspiring video game developers out there! Want to use your web application ski

Dec 22, 2022

Plugin to run NestJS Apps from Nest Monorepo

Serverless Nest Monorepo Plugin Plugin that adds support to run NestJS Apps from Nest Monorepo, which is set up using Nest CLI with several microservi

Dec 1, 2022

A monorepo containing both the $CODE token contract & the claim web app.

A monorepo containing both the $CODE token contract & the claim web app.

DeveloperDAO $CODE contract & claim site A monorepo containing both the $CODE token contract & the claim web app. Contents Related Development Prerequ

Jul 12, 2022

Unified-myst is a monorepo containing packages for using MyST

Unified-myst is a monorepo containing packages for using MyST

unified-myst (IN-DEVELOPMENT) unified-myst is a monorepo containing packages for using MyST (Markedly Structured Text), within the unified ecosystem.

Apr 14, 2022

Get packages from a monorepo (pnpm, yarn, npm, lerna)

💛 You can help the author become a full-time open-source maintainer by sponsoring him on GitHub. @egoist/get-packages Get packages from a monorepo (p

Jun 1, 2022

Nomad Monorepo -- SDKs, Contracts, and more!

Nomad Nomad is a cross-chain communication protocol. This repo contains the following: Smart contracts for the core Nomad protocol Smart contracts for

Dec 29, 2022

⚙️ Monorepo for shared configurations used in Alphaworks

@alpha-dao/shared-config Usage Shared Config Wondering which configuration to use when starting a new project? Then you're probably looking for this m

Nov 17, 2022

🚀 The Ultimate Monorepo Starter for Node.js Serverless Applications

🚀 The Ultimate Monorepo Starter for Node.js Serverless Applications

Nx Serverless The Ultimate Monorepo Starter for Node.js Serverless Applications ✅ First-Class Typescript Support ✅ DynamoDB Single Table Design ✅ Shar

Jan 1, 2023

Monorepo management scripts

Monorepo management scripts

Jan 26, 2022
Releases(v1.0.2)
Owner
zoy-l
zoy-l
🥾 A simple way to do testing AWS Services and Jest or Serverless and Jest

jest-localstack-preset Install Install via yarn or npm $ yarn add https://github.com/thadeu/jest-localstack-preset.git or $ npm i https://github.com/t

thadeu 5 Oct 1, 2022
🌓 Add dark mode/night mode custom elements to your website.

dark-mode A custom element that allows you to easily put a Dark Mode ?? toggle. so you can initially adhere to your users' preferences according to pr

小弟调调™ 12 Oct 20, 2022
Query for CSS brower support data, combined from caniuse and MDN, including version support started and global support percentages.

css-browser-support Query for CSS browser support data, combined from caniuse and MDN, including version support started and global support percentage

Stephanie Eckles 65 Nov 2, 2022
Perfect SvelteKit dark mode in 2 lines of code. Support System preference and any other theme with no flashing

This library is a port of next-theme for SvelteKit. All credit goes to pacocoursey and all next-themes contributors While usable, this library is stil

null 42 Sep 30, 2022
A drop in replacement for Hacker News with support for dark mode and more.

Worker News A drop in replacement for Hacker News with support for dark mode, quotes in comments, user identicons and submission favicons. What's cool

Worker Tools 18 Dec 31, 2022
A quick and easy to use security reconnaissance webapp tool, does OSINT, analysis and red-teaming in both passive and active mode. Written in nodeJS and Electron.

ᵔᴥᵔ RedJoust A quick and easy to use security reconnaissance webapp tool, does OSINT, analysis and red-teaming in both passive and active mode. Writte

Dave 17 Oct 31, 2022
An easy to implement marquee JQuery plugin with pause on hover support. I know its easy because even I can use it.

Simple-Marquee Copyright (C) 2016 Fabian Valle An easy to implement marquee plugin. I know its easy because even I can use it. Forked from: https://gi

null 16 Aug 29, 2022
A simple boilerplate using NextJS, Typescript, Tailwind, Jest, Storybook and more.

This is a Next.js boilerplate using TailwindCSS and other cool stuff. Most of this is taught in this course. What is inside? This project uses lot of

React Avançado 26 Dec 4, 2022
Projen project type for Turborepo monorepo setup.

?? projen-turborepo Projen project type for Turborepo monorepo setup. Getting Started To create a new project, run the following command and follow th

Roman 23 Oct 4, 2022
A demo for E2E build piplelines in Design Systems using monorepo's and automation :zap:.

Design System Pipelines demo What is it? A working demonstration for end-to-end build piplelines in Design Systems using Primer Primitives, Primer CSS

Rez 7 Oct 20, 2022