Azure / aks-devx-tools

Create deployment files and configure GitHub Actions workflows to deploy applications to Azure Kubernetes Service (AKS).
MIT License
17 stars 17 forks source link

swap tests to use jest and separate e2e and unit tests #56

Closed OliverMKing closed 2 years ago

OliverMKing commented 2 years ago

Description

Swap tests to use jest and separate them into e2e tests and unit tests. Jest is preferred over mocha because that's what our team has experience with. Separating e2e and unit tests makes sense to reduce testing feedback loop time + makes the repository more organized.

https://github.com/microsoft/vscode-test/pull/59 Here's some discussion on how to do it for vs-code (and some interesting jest vs mocha discussion). In most metrics jest has greatly surpassed mocha.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

These are testing changes. They run both locally and on the github runner. They have been checked in both failure and success cases. If tests fail, the cli returns a non 0 exit code and the opposite for successes.

Checklist:

OliverMKing commented 2 years ago

This isn't worth it. Let's just use Mocha 🐙.