React jest testing sample upgraded to SPFx version 1.8.2 (#898)

* React jest testing sample upgraded to SPFx version 1.8.2

* readme file updated
This commit is contained in:
Velin Georgiev 2019-07-05 13:56:18 +01:00 committed by Vesa Juvonen
parent 11ab7900cd
commit a5a9e7e5af
7 changed files with 9851 additions and 9307 deletions

View File

@ -1,7 +1,7 @@
{ {
"@microsoft/generator-sharepoint": { "@microsoft/generator-sharepoint": {
"isCreatingSolution": true, "isCreatingSolution": true,
"version": "1.7.0", "version": "1.8.2",
"libraryName": "react-jest-testing", "libraryName": "react-jest-testing",
"libraryId": "9e16e13b-8d8c-4b89-8de4-dd654c5b6740", "libraryId": "9e16e13b-8d8c-4b89-8de4-dd654c5b6740",
"environment": "spo", "environment": "spo",

View File

@ -88,6 +88,7 @@ Version|Date|Comments
0.0.2|June 12, 2018 | Update to 1.5.0, missing launch.json added 0.0.2|June 12, 2018 | Update to 1.5.0, missing launch.json added
0.0.3|September 27, 2018 | Update to 1.6.0 0.0.3|September 27, 2018 | Update to 1.6.0
0.0.4|December 10, 2018 | Update to 1.7.0 0.0.4|December 10, 2018 | Update to 1.7.0
0.0.5|June 23, 2019 | Update to 1.8.2
## Disclaimer ## 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.** **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.**

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "react-jest-testing", "name": "react-jest-testing",
"version": "0.0.4", "version": "0.0.5",
"private": true, "private": true,
"engines": { "engines": {
"node": ">=0.10.0" "node": ">=0.10.0"
@ -11,25 +11,28 @@
"test": "jest" "test": "jest"
}, },
"dependencies": { "dependencies": {
"@microsoft/sp-core-library": "1.7.0", "@microsoft/sp-core-library": "1.8.2",
"@microsoft/sp-lodash-subset": "1.7.0", "@microsoft/sp-lodash-subset": "1.8.2",
"@microsoft/sp-office-ui-fabric-core": "1.7.0", "@microsoft/sp-office-ui-fabric-core": "1.8.2",
"@microsoft/sp-webpart-base": "1.7.0", "@microsoft/sp-webpart-base": "1.8.2",
"@pnp/common": "1.2.7", "@pnp/common": "1.2.7",
"@pnp/logging": "1.2.7", "@pnp/logging": "1.2.7",
"@pnp/odata": "1.2.7", "@pnp/odata": "1.2.7",
"@pnp/sp": "1.2.7", "@pnp/sp": "1.2.7",
"@types/es6-promise": "0.0.33", "@types/es6-promise": "0.0.33",
"@types/react": "16.4.2", "@types/react": "16.7.22",
"@types/react-dom": "16.0.5", "@types/react-dom": "16.8.0",
"@types/webpack-env": "1.13.1", "@types/webpack-env": "1.13.1",
"react": "16.3.2", "office-ui-fabric-react": "6.143.0",
"react-dom": "16.3.2" "react": "16.7.0",
"react-dom": "16.7.0"
}, },
"devDependencies": { "devDependencies": {
"@microsoft/sp-build-web": "1.7.0", "@microsoft/rush-stack-compiler-2.9": "0.7.7",
"@microsoft/sp-module-interfaces": "1.7.0", "@microsoft/sp-build-web": "1.8.2",
"@microsoft/sp-webpart-workbench": "1.7.0", "@microsoft/sp-module-interfaces": "1.8.2",
"@microsoft/sp-tslint-rules": "1.8.2",
"@microsoft/sp-webpart-workbench": "1.8.2",
"@types/chai": "3.4.34", "@types/chai": "3.4.34",
"@types/enzyme": "3.1.15", "@types/enzyme": "3.1.15",
"@types/jest": "22.2.3", "@types/jest": "22.2.3",
@ -46,6 +49,9 @@
"sinon": "5.0.7", "sinon": "5.0.7",
"ts-jest": "22.4.5" "ts-jest": "22.4.5"
}, },
"resolutions": {
"@types/react": "16.7.22"
},
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": [
"ts", "ts",

View File

@ -6,6 +6,7 @@
"version": "*", "version": "*",
"manifestVersion": 2, "manifestVersion": 2,
"requiresCustomScript": false, "requiresCustomScript": false,
"supportedHosts": ["SharePointWebPart"],
"preconfiguredEntries": [{ "preconfiguredEntries": [{
"groupId": "5c03119e-3074-46fd-976b-c60198311f70", "groupId": "5c03119e-3074-46fd-976b-c60198311f70",
"group": { "default": "Other" }, "group": { "default": "Other" },

View File

@ -1,11 +1,8 @@
import * as React from 'react'; import * as React from 'react';
import * as ReactDom from 'react-dom'; import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library'; import { Version } from '@microsoft/sp-core-library';
import { import { BaseClientSideWebPart } from "@microsoft/sp-webpart-base";
BaseClientSideWebPart, import { IPropertyPaneConfiguration, PropertyPaneTextField } from "@microsoft/sp-property-pane";
IPropertyPaneConfiguration,
PropertyPaneTextField
} from '@microsoft/sp-webpart-base';
import * as strings from 'IceCreamShopWebPartStrings'; import * as strings from 'IceCreamShopWebPartStrings';
import IceCreamShop from './components/IceCreamShop'; import IceCreamShop from './components/IceCreamShop';

View File

@ -1,4 +1,5 @@
{ {
"extends": "./node_modules/@microsoft/rush-stack-compiler-2.9/includes/tsconfig-web.json",
"compilerOptions": { "compilerOptions": {
"target": "es5", "target": "es5",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
@ -10,6 +11,9 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"skipLibCheck": true, "skipLibCheck": true,
"outDir": "lib", "outDir": "lib",
"inlineSources": false,
"strictNullChecks": false,
"noUnusedLocals": false,
"typeRoots": [ "typeRoots": [
"./node_modules/@types", "./node_modules/@types",
"./node_modules/@microsoft" "./node_modules/@microsoft"