Skip to content

Conversation

@h2floh
Copy link

@h2floh h2floh commented Feb 23, 2021

Hi,

main purpose of this PR:

Include a minimal viable unit test example for React/TS components to the WorkItemFormGroup

  • npm audit fix all security vulnerabilities
  • bumping TS to v3.9
  • bumping Webpack to v7
  • bumping Node.JS in pipeline to v10.19 (LTS)
  • adding minimal mocks for azure-devops-extension-sdk
  • adding mocks for sample extension features
  • adding unit tests for WorkItemFormGroupComponent to achieve 100% code coverage
  • renaming WorkItemFormGroup manifest and html file, otherwise React testing lib will fail to import the component
  • including unit test run into compile scripts
  • adding jest/ts-jest configuration to package.json
  • validated that sample extension package can be deployed to Visual Studio Marketplace, shared and installed and working
  • validated that build pipeline successfully completes
  • updated README.md to reflect that WorkItemFormGroup sample includes unit tests

Additional Azure DevOps Extension unit test samples can be found here:
https://github.com/h2floh/azure-dev-ops-react-ui-unit-testing

@h2floh h2floh mentioned this pull request Feb 23, 2021
@jdrush89 jdrush89 merged commit 9846c56 into microsoft:master Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants