This project contains a mock API implemented in Java with Spring Boot, as well as Jest snapshot tests for the API endpoints.
src/main/java/com/example/mockapi/
- Java Spring Boot APIjest-tests/
- Jest Snapshot Tests
- Make sure Java, Maven, and Node are installed
- In the root directory, run:
mvn clean install
- Install the dependencies for Jest:
cd jest-tests && npm install
- In the root directory, run:
mvn spring-boot:run
- In
jest-tests/
, run:npm test