UNPKG

@nx/react

Version:

The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook. - Generators for applica

9 lines (8 loc) 408 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.updateJestConfigContent = updateJestConfigContent; function updateJestConfigContent(content) { return content .replace('transform: {', "transform: {\n '^(?!.*\\\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',") .replace(`'babel-jest'`, `['babel-jest', { presets: ['@nx/react/babel'] }]`); }