sp-dev-fx-webparts/samples/react-jest-testing/package.json

95 lines
2.2 KiB
JSON

{
"name": "react-jest-testing",
"version": "0.0.5",
"private": true,
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"build": "gulp bundle",
"clean": "gulp clean",
"test": "jest"
},
"dependencies": {
"@microsoft/sp-core-library": "1.8.2",
"@microsoft/sp-lodash-subset": "1.8.2",
"@microsoft/sp-office-ui-fabric-core": "1.8.2",
"@microsoft/sp-webpart-base": "1.8.2",
"@pnp/common": "1.2.7",
"@pnp/logging": "1.2.7",
"@pnp/odata": "1.2.7",
"@pnp/sp": "1.2.7",
"@types/es6-promise": "0.0.33",
"@types/react": "16.7.22",
"@types/react-dom": "16.8.0",
"@types/webpack-env": "1.13.1",
"office-ui-fabric-react": "6.143.0",
"react": "16.7.0",
"react-dom": "16.7.0"
},
"devDependencies": {
"@microsoft/rush-stack-compiler-2.9": "0.7.7",
"@microsoft/sp-build-web": "1.8.2",
"@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/enzyme": "3.1.15",
"@types/jest": "22.2.3",
"@types/mocha": "2.2.38",
"@types/sinon": "5.0.7",
"ajv": "~6.12.3",
"enzyme": "3.8.0",
"enzyme-adapter-react-16": "1.7.1",
"gulp": "~3.9.1",
"identity-obj-proxy": "3.0.0",
"jest": "22.4.3",
"jest-junit": "5.2.0",
"react-test-renderer": "16.6.3",
"sinon": "5.0.7",
"ts-jest": "22.4.5"
},
"resolutions": {
"@types/react": "16.7.22"
},
"jest": {
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testMatch": [
"**/src/**/*.test.+(ts|tsx|js)"
],
"collectCoverage": true,
"coverageReporters": [
"json",
"lcov",
"text",
"cobertura"
],
"coverageDirectory": "<rootDir>/jest",
"moduleNameMapper": {
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
},
"reporters": [
"default",
"jest-junit"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
},
"jest-junit": {
"output": "./jest/summary-jest-junit.xml"
}
}