Skip to content

Lean-Coders/snapshot-test-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mock API with Jest Snapshot Tests

This project contains a mock API implemented in Java with Spring Boot, as well as Jest snapshot tests for the API endpoints.

Project Structure

  • src/main/java/com/example/mockapi/ - Java Spring Boot API
  • jest-tests/ - Jest Snapshot Tests

Installation

  1. Make sure Java, Maven, and Node are installed
  2. In the root directory, run: mvn clean install
  3. Install the dependencies for Jest: cd jest-tests && npm install

Start the API

  1. In the root directory, run: mvn spring-boot:run

Run JEST Tests

  1. In jest-tests/, run: npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published