? What is your solution name? unit-test ? Which baseline packages do you want to target for your component(s)? SharePoint Online only (latest) ? Where do you want to place the files? Use the current folder Found npm version 6.9.0 ? Do you want to allow the tenant admin the choice of being able to deploy the solution to all sites immediately without running any feature deployment or adding apps in sites? No ? Will the components in the solution require permissions to access web APIs that are unique and not shared with other c omponents in the tenant? No ? Which type of client-side component to create? WebPart Add new Web part to solution unit-test. ? What is your Web part name? UnitTesting ? What is your Web part description? UnitTesting description ? Which framework would you like to use? React
次にjestをインストールします。
npm i jest jest-junit @voitanos/jest-preset-spfx-react16 -d