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.
[x] New feature (non-breaking change which adds functionality)
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:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
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: