microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.59k stars 2.48k forks source link

[Refactor, update] Refactor test suite from Jest in favor of Vitest #855

Closed iseabock closed 4 months ago

iseabock commented 4 months ago

Motivation and Context

Previously using Jest as a test suite it was noticed that there were a number of issues requiring different packages to accomplish testing. There were too many hoops to jump through in order to get it working on Vite.

Description

In order to accomplish this, I decided to move to Vitest and in order to get some of the modern goodness of this suite I decided to update Vite from 4.x to 5.x with a few other packages to updated as a requirement.

Something note worthy to mention is that Vitest runs incredibly fast compared to Jest in this case.

スクリーンショット 2024-04-15 170710

Contribution Checklist