https://github.com/fabiangosebrink/nx-karma-to-jest
Schematic to turn an Nx Workspace's Test Runner from Karma to Jest
https://github.com/fabiangosebrink/nx-karma-to-jest
Last synced: 2 months ago
JSON representation
Schematic to turn an Nx Workspace's Test Runner from Karma to Jest
- Host: GitHub
- URL: https://github.com/fabiangosebrink/nx-karma-to-jest
- Owner: FabianGosebrink
- License: mit
- Created: 2020-03-07T16:40:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T17:25:49.000Z (over 2 years ago)
- Last Synced: 2025-03-09T23:01:47.873Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.22 MB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nx Karma To Jest Schematic for Angular Projects

[](https://www.npmjs.com/package/@offeringsolutions/nx-karma-to-jest)
## Usage
```
ng add @offeringsolutions/nx-karma-to-jest
```## Description
This schematic will migrate your Nx Workspace from Karma to Jest. It will scan the workspace, find all projects and lib and update them all including the workspace itself.
## Actions
This schematic will
- Create Jest files inside your project/lib folders
- Delete Karma files inside your project/lib folders
- Update testing section for your project/lib in the `angular.json` file
- Update the schematic test runner in the `angular.json` file from `karma` to `jest`
- Create Jest files on root level
- Delete Karma files on root level
- Modify `package.json` (removing Karma deps, adding Jest deps) and install them