115 lines
2.8 KiB
JSON
115 lines
2.8 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 --maxWorkers=2"
|
|
},
|
|
"dependencies": {
|
|
"@microsoft/sp-core-library": "1.10.0",
|
|
"@microsoft/sp-lodash-subset": "1.10.0",
|
|
"@microsoft/sp-office-ui-fabric-core": "1.10.0",
|
|
"@microsoft/sp-webpart-base": "1.10.0",
|
|
"@pnp/polyfill-ie11": "2.0.1",
|
|
"@pnp/sp": "2.0.2",
|
|
"react": "16.8.5",
|
|
"react-dom": "16.8.5"
|
|
},
|
|
"resolutions": {
|
|
"@types/react": "16.8.8",
|
|
"micromatch": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@microsoft/rush-stack-compiler-3.7": "0.2.3",
|
|
"@microsoft/sp-build-web": "1.10.0",
|
|
"@microsoft/sp-module-interfaces": "1.10.0",
|
|
"@microsoft/sp-tslint-rules": "1.10.0",
|
|
"@microsoft/sp-webpart-workbench": "1.10.0",
|
|
"@types/enzyme": "^3.1.15",
|
|
"@types/enzyme-adapter-react-16": "1.0.5",
|
|
"@types/es6-promise": "0.0.33",
|
|
"@types/jest": "^22.2.3",
|
|
"@types/react": "16.8.8",
|
|
"@types/react-dom": "16.8.3",
|
|
"@types/webpack-env": "1.13.1",
|
|
"ajv": "~5.2.2",
|
|
"enzyme": "3.11.0",
|
|
"enzyme-adapter-react-16": "1.15.2",
|
|
"gulp": "~3.9.1",
|
|
"identity-obj-proxy": "3.0.0",
|
|
"jest": "25.1.0",
|
|
"jest-junit": "10.0.0",
|
|
"react-test-renderer": "16.12.0",
|
|
"ts-jest": "25.2.0",
|
|
"typescript": "3.7.5"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"json"
|
|
],
|
|
"transform": {
|
|
"^.+\\.(ts|tsx)$": "ts-jest"
|
|
},
|
|
"transformIgnorePatterns": [
|
|
"node_modules/(?!(@microsoft/sp-core-library))"
|
|
],
|
|
"roots": [
|
|
"src/"
|
|
],
|
|
"errorOnDeprecated": true,
|
|
"testMatch": [
|
|
"**/src/**/*.test.+(ts|tsx|js)"
|
|
],
|
|
"collectCoverage": true,
|
|
"coverageReporters": [
|
|
"json",
|
|
"lcov",
|
|
"text",
|
|
"cobertura"
|
|
],
|
|
"coverageDirectory": "<rootDir>/jest",
|
|
"collectCoverageFrom": [
|
|
"src/**/*.{ts,tsx}",
|
|
"!src/common/providers/DependencyResolver/DependencyResolver.ts",
|
|
"!src/**/*WebPart.ts",
|
|
"!src/**/*ApplicationCustomizer.ts",
|
|
"!src/**/*Executor.ts",
|
|
"!src/**/Mock*.ts",
|
|
"!src/**/*.scss.ts",
|
|
"!**/loc/**"
|
|
],
|
|
"moduleNameMapper": {
|
|
"\\.(css|less|scss|sass)$": "identity-obj-proxy",
|
|
"office-ui-fabric-react/lib/(.*)$": "office-ui-fabric-react/lib-commonjs/$1"
|
|
},
|
|
"reporters": [
|
|
"default",
|
|
"jest-junit"
|
|
],
|
|
"moduleDirectories": [
|
|
"node_modules"
|
|
],
|
|
"coverageThreshold": {
|
|
"global": {
|
|
"branches": 100,
|
|
"functions": 100,
|
|
"lines": 100,
|
|
"statements": 100
|
|
}
|
|
}
|
|
},
|
|
"jest-junit": {
|
|
"outputDirectory": "./jest",
|
|
"outputName": "summary-jest-junit.xml"
|
|
},
|
|
"main": "lib/index.js"
|
|
}
|