Skip to content

kkazala/jestTestSPFxWebPart

Repository files navigation

Hello World with jest tests

Summary

Deafault SPFX Web Part. This solution presents minimum configuration required to execute jest tests of a localized WebPart with React component.

Used SharePoint Framework Version

version

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

See https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment

Solution

Solution Author(s)
jestTestSPFxWebPart Kinga Kazala, ETHZ, https://dev.to/kkazala

Version history

Version Date Comments
1.0 20.07.2023 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • pnpm install
    • gulp serve

Include any additional steps as needed.

Features

This solution illustrates the minimum required configuration for executing jest tests.

References

About

SPFx WebPart with jest unit test and required configuration

Resources

Stars

Watchers

Forks