Created
January 12, 2017 08:15
-
-
Save phattranky/6888280557ee8d8c079ca7f8c4df5f18 to your computer and use it in GitHub Desktop.
Jest Package.json configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"private": true, | |
"devDependencies": { | |
"babel-core": "^6.18.2", | |
"babel-eslint": "^7.1.1", | |
"babel-plugin-syntax-trailing-function-commas": "^6.13.0", | |
"babel-plugin-transform-async-to-generator": "^6.16.0", | |
"babel-plugin-transform-es2015-destructuring": "^6.19.0", | |
"babel-plugin-transform-es2015-parameters": "^6.18.0", | |
"babel-plugin-transform-flow-strip-types": "^6.18.0", | |
"chalk": "^1.1.3", | |
"codecov": "^1.0.1", | |
"eslint": "^3.11.1", | |
"eslint-plugin-babel": "^4.0.0", | |
"eslint-plugin-flow-vars": "^0.5.0", | |
"eslint-plugin-flowtype": "^2.28.2", | |
"eslint-plugin-react": "^6.7.1", | |
"flow-bin": "^0.37.0", | |
"glob": "^7.1.1", | |
"graceful-fs": "^4.1.11", | |
"istanbul-api": "^1.1.0", | |
"istanbul-lib-coverage": "^1.0.0", | |
"jasmine-reporters": "^2.2.0", | |
"jsdom": "^9.9.1", | |
"left-pad": "^1.1.1", | |
"lerna": "2.0.0-beta.32", | |
"micromatch": "^2.3.11", | |
"mkdirp": "^0.5.1", | |
"progress": "^1.1.8", | |
"react": "^15.4.1", | |
"react-test-renderer": "^15.4.1", | |
"rimraf": "^2.5.4", | |
"strip-ansi": "^3.0.1", | |
"typescript": "^2.1.4" | |
}, | |
"scripts": { | |
"build-clean": "rm -rf ./packages/*/build", | |
"build": "node ./scripts/build.js", | |
"clean-all": "rm -rf ./node_modules; rm -rf ./packages/*/node_modules; rm -rf ./integration_tests/*/*/node_modules; yarn run build-clean", | |
"danger": "node ./danger/node_modules/.bin/danger", | |
"jest": "node ./packages/jest-cli/bin/jest.js", | |
"jest-coverage": "yarn run jest -- --coverage", | |
"lint": "eslint . --cache", | |
"postinstall": "node ./scripts/postinstall.js && node ./scripts/build.js && (cd packages/eslint-plugin-jest && yarn link) && yarn link eslint-plugin-jest", | |
"publish": "yarn run build-clean && yarn run build && lerna publish", | |
"test": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest && yarn run test-examples", | |
"test-ci": "yarn run typecheck && yarn run lint && yarn run build && yarn run jest-coverage -- -i && yarn run test-examples && node scripts/mapCoverage.js && codecov", | |
"test-examples": "node scripts/test_examples.js", | |
"typecheck": "flow check", | |
"watch": "yarn run build; node ./scripts/watch.js" | |
}, | |
"jest": { | |
"modulePathIgnorePatterns": [ | |
"examples/.*", | |
"packages/.*/build", | |
"packages/jest-runtime/src/__tests__/test_root_with_dup_mocks" | |
], | |
"collectCoverageFrom": [ | |
"**/packages/**/*.js", | |
"!**/bin/**", | |
"!**/cli/**", | |
"!**/perf/**", | |
"!**/vendor/**", | |
"!**/__mocks__/**", | |
"!**/__tests__/**", | |
"!integration_tests/**" | |
], | |
"coverageReporters": [ | |
"json" | |
], | |
"transform": { | |
"^.+\\.js$": "<rootDir>/packages/babel-jest" | |
}, | |
"setupTestFrameworkScriptFile": "<rootDir>/testSetupFile.js", | |
"testEnvironment": "./packages/jest-environment-node", | |
"testPathIgnorePatterns": [ | |
"/node_modules/", | |
"/examples/", | |
"/integration_tests/.*/__tests__", | |
"\\.snap$", | |
"/packages/.*/build" | |
], | |
"testRegex": ".*-test\\.js" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment