port script tests from mocha to jest#6517
Merged
shiftkey merged 9 commits intodevelopmentfrom Jan 16, 2019
Merged
Conversation
deb2ae4 to
f6f3c9e
Compare
Member
Author
|
As a sanity check, I confirmed the test counts and code coverage still match between
|
2 tasks
bb517ad to
723307a
Compare
723307a to
7f59333
Compare
iAmWillShepherd
approved these changes
Jan 10, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
I'd like us to move away from
mochaandchaiusage in favour of plainjestand jest plugins now that we have the unit test suite working nicely. This PR is another step on that journey.Description
To avoid confusion I moved the root
jest.config.jsunderappto move it closer to code it's associated with testing. I then added ascript/jest.config.jsthat is associated with testing the scripting functionality. Like before, I also replaced thechaiassertions with the jest builtins.jest-junitnow needs to emit distinct test runs to upload to Azure Pipelines (by default it'll overwritejunit.xml)Release notes
Notes: no-notes