109 lines
2.6 KiB
JSON
109 lines
2.6 KiB
JSON
|
{
|
||
|
"name": "ioc-tests",
|
||
|
"version": "0.0.1",
|
||
|
"private": true,
|
||
|
"engines": {
|
||
|
"node": ">=0.10.0"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"build": "gulp bundle",
|
||
|
"clean": "gulp clean",
|
||
|
"test": "jest"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"@microsoft/sp-core-library": "1.8.0",
|
||
|
"@microsoft/sp-lodash-subset": "1.8.0",
|
||
|
"@microsoft/sp-office-ui-fabric-core": "1.8.0",
|
||
|
"@microsoft/sp-webpart-base": "1.8.0",
|
||
|
"@pnp/common": "^1.2.9",
|
||
|
"@pnp/logging": "^1.2.9",
|
||
|
"@pnp/odata": "^1.2.9",
|
||
|
"@pnp/sp": "^1.2.9",
|
||
|
"@types/es6-promise": "0.0.33",
|
||
|
"@types/react": "16.7.22",
|
||
|
"@types/react-dom": "16.0.5",
|
||
|
"@types/webpack-env": "1.13.1",
|
||
|
"enzyme-adapter-react-16.3": "^1.6.1",
|
||
|
"react": "16.7.0",
|
||
|
"react-dom": "16.7.0"
|
||
|
},
|
||
|
"resolutions": {
|
||
|
"@types/react": "16.4.2"
|
||
|
},
|
||
|
"devDependencies": {
|
||
|
"@microsoft/rush-stack-compiler-2.7": "0.4.0",
|
||
|
"@microsoft/rush-stack-compiler-3.3": "^0.1.7",
|
||
|
"@microsoft/sp-build-web": "1.8.0",
|
||
|
"@microsoft/sp-module-interfaces": "1.8.0",
|
||
|
"@microsoft/sp-tslint-rules": "1.8.0",
|
||
|
"@microsoft/sp-webpart-workbench": "1.8.0",
|
||
|
"@types/chai": "3.4.34",
|
||
|
"@types/enzyme": "^3.1.15",
|
||
|
"@types/jest": "^22.2.3",
|
||
|
"@types/mocha": "2.2.38",
|
||
|
"ajv": "~5.2.2",
|
||
|
"enzyme": "^3.8.0",
|
||
|
"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",
|
||
|
"ts-jest": "^22.4.5",
|
||
|
"typescript": "3.3.4000"
|
||
|
},
|
||
|
"jest": {
|
||
|
"moduleFileExtensions": [
|
||
|
"ts",
|
||
|
"tsx",
|
||
|
"js",
|
||
|
"json"
|
||
|
],
|
||
|
"transform": {
|
||
|
"^.+\\.(ts|tsx)$": "ts-jest"
|
||
|
},
|
||
|
"transformIgnorePatterns": [
|
||
|
"node_modules/(?!(@microsoft/sp-core-library))"
|
||
|
],
|
||
|
"testMatch": [
|
||
|
"**/src/**/*.test.+(ts|tsx|js)"
|
||
|
],
|
||
|
"collectCoverage": true,
|
||
|
"coverageReporters": [
|
||
|
"json",
|
||
|
"lcov",
|
||
|
"text",
|
||
|
"cobertura"
|
||
|
],
|
||
|
"coverageDirectory": "<rootDir>/jest",
|
||
|
"collectCoverageFrom": [
|
||
|
"src/**/*.{ts,js,tsx}",
|
||
|
"!src/**/*WebPart.{ts,js,tsx}",
|
||
|
"!src/**/*ServiceExecutor.{ts,js,tsx}",
|
||
|
"!src/**/Mock*.{ts,js,tsx}",
|
||
|
"!src/**/*.scss.{ts,js}",
|
||
|
"!**/loc/**"
|
||
|
],
|
||
|
"moduleNameMapper": {
|
||
|
"\\.(css|less|scss|sass)$": "identity-obj-proxy"
|
||
|
},
|
||
|
"reporters": [
|
||
|
"default",
|
||
|
"jest-junit"
|
||
|
],
|
||
|
"moduleDirectories": [
|
||
|
"node_modules"
|
||
|
],
|
||
|
"coverageThreshold": {
|
||
|
"global": {
|
||
|
"branches": 100,
|
||
|
"functions": 100,
|
||
|
"lines": 100,
|
||
|
"statements": 100
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"jest-junit": {
|
||
|
"output": "./jest/summary-jest-junit.xml"
|
||
|
}
|
||
|
}
|