An open API service indexing awesome lists of open source software.

https://github.com/fabiangosebrink/nx-protractor-to-cypress

Schematic to turn an Nx Workspace's e2e rest runner from Protractor to Cypress
https://github.com/fabiangosebrink/nx-protractor-to-cypress

Last synced: about 2 months ago
JSON representation

Schematic to turn an Nx Workspace's e2e rest runner from Protractor to Cypress

Awesome Lists containing this project

README

        

# Nx Protractor To Cypress Schematic for Angular Projects

![TravisCi build](https://travis-ci.org/FabianGosebrink/nx-protractor-to-cypress.svg?branch=master 'Travis CI Build')
[![npm (scoped)](https://img.shields.io/npm/v/@offeringsolutions/nx-protractor-to-cypress.svg)](https://www.npmjs.com/package/@offeringsolutions/nx-protractor-to-cypress)

![commandline usage](.github/ng-cmd.png 'Commandline usage')

## Usage

```
ng add @offeringsolutions/nx-protractor-to-cypress
```

## Description

This schematic will migrate your Nx Workspace from using Protractor to use Cypress. It will scan the workspace, find all projects and update them all including the workspace itself.

## Actions

This schematic will

- Create Cypress files inside your project-e2e folders
- Delete protractor files
- Update all used sections in the `angular.json` file
- Update the e2e test runner in the `angular.json` file from `protractor` to `cypress`
- Modify `package.json` (removing Protractor deps, adding Cypress deps) and install them