Testing¶
TypeScript Testing¶
- Introduction to Test-Driven Development (TDD) with Classic TDD Example
- How to Setup a TypeScript + Node.js Project
- Simple TypeScript Starter | 2020
- Introduction to Test-Driven Development (TDD) with TypeScript | 2021
Toolchain Setup¶
Playwright¶
- playwright
- End-to-End Test Microsoft 365 Solutions with Playwright
- testing-microsoft365-playwright-template
- How to Do MFA Login With Playwright
Support¶
React Testing Library¶
- React Testing Library
- Testing In React Tutorial - Jest and React Testing Library
- Testing SharePoint Framework (SPFx) Components with Jest and React Testing Library
Jest¶
- SharePoint Framework unit-tests with Jest
- Writing unit tests for your SharePoint Framework components
- Unit Test your SharePoint Framework solution with Jest
- Demo: Simplify SPFx test configuration with Jest Presets
- jest-preset-spfx-react16
- SPFx Deep Dive Webinar Series: Unit Test SPFx Solutions using Jest and Enzyme
- Community Demo - Simplify SPFx test configuration with Jest Presets
- Test-Driven Development with React, Jest, and Enzyme - Part 1
- PiaSys: Episode #33 - Testing SharePoint Framework Solutions with Jest and Enzyme
- PiaSys: spfx-testing-v-1-9-1
- Extend SPFx solution testability: Let’s start
- Extend SPFx solution testability: TDD in Data Access Layer
- Extend SPFx solution testability: TDD in View Layer
- Extend SPFx solution testability: TDD in View Layer part 2
- Extend SPFx solution testability: dealing with legacy code and async components
- Mock teams library in SPFx project
- Publish Code Coverage Results in Azure DevOps Pipeline for React
- Mocking 3rd party libraries with jest for SPFx developers
- spfx-wp-react-app
- State of SPFx unit testing in 2023
Testing Hooks¶
Samples¶
- SharePoint Framework Unit-Tests Sample with Jest
- PFx-Jest-Enzyme-Sinon unit testing starter kit
- React Inversion Of Control Web Part with Unit Tests using Jest and Enzyme
- message-bar
- Table Of Contents for SharePoint
- unit-test-samples
- mgwdev-spfx-utfx
- SharePoint Framework Unit Tests - Part 1
- Getting started with unit testing SPFx