Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Legal representation frontend application for Civil Money Claims

License

Notifications You must be signed in to change notification settings

hmcts/cmc-legal-rep-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMC legal-rep-frontend

This aervice is archived and decomissioned.

Greenkeeper badge This is the front end for legal representation journey within CMC

Standard - JavaScript Style Guide

Getting Started

Prerequisites

Running the application

Install dependencies by executing the following command:

$ yarn install

Run:

$ gulp

It will be available at https://localhost:4000

Running the application on docker (integrated environment)

See the README.md in hmcts/cmc-integration-tests

Developing

Code style

We use TSLint with StandardJS rules alongside sass-lint

Running the linting: yarn lint

Running the tests

Mocha is used for writing tests. Run them with:

$ yarn test

For functional testing:

$ yarn test:routes

For accessibilit testing:

$ yarn test:a11y

For code coverage:

$ yarn test:coverage

Running end to end tests

Integration tests are written using CodeceptJS framework and reside in src/integration-test directory. They are executed using Docker.

If you want to run them to see if your changes work, you will need to build a docker image containing your updates:

$ docker-compose build legal-integration-tests

Then you can go to the integration-tests project and run them with:

$ ./bin/run-local-legal-tests.sh

If you didn't have a dockerized environment running it will be started up for you. If you prefer to start it up yourself beforehand, do:

$ ./bin/start-local-environment.sh

For more details on the dockerized environment please refer to integration-tests repository'sREADME

Troubleshooting

Warnings while running yarn install on yarn version 1.0.1

There is currently an open issue : yarnpkg/yarn#3751

Example:

warning The case-insensitive file C:\CMC\cmc-legal-rep-frontend\node_modules\nyc\node_modules shouldn't be copied twice in one bulk copy
warning The case-insensitive file C:\CMC\cmc-legal-rep-frontend\node_modules\nyc\node_modules\ansi-regex shouldn't be copied twice in one bulk copy