mvnjest serves as an example how to use Jest in an Spring-Boot/Maven environment.
The idea is to manage all client side artifacts by npm/webpack and to reference them in the Spring-Boot app via web-jars.
- If you just want to see the app just run
- This will do a client build and you are good to go.
If you want to have some more control:
npm installto get all client side libs.
npm startto build the web-jar.
mvn clean installto build the server part
- Run the Spring Boot app via
mvn spring-boot:runor via IDE (I run it via IntelliJ Spring-Boot-Dashboard)
Looking at http://localhost:8080 will show the simple webapp.
npm testwill run the jest tests