jest-html
Version:
Preview Jest snapshots right in your browser
152 lines (151 loc) • 5.23 kB
JSON
{
"name": "jest-html",
"version": "1.5.0",
"description": "Preview Jest snapshots right in your browser",
"bin": {
"jest-html": "lib/previewer.js"
},
"main": "lib/serializer/",
"engines": {
"node": ">=6"
},
"author": "Guillermo Grau Panea",
"license": "MIT",
"keywords": [
"Jest",
"test",
"snapshot",
"serializer",
"html",
"preview"
],
"homepage": "https://github.com/guigrpa/jest-html#readme",
"bugs": {
"url": "https://github.com/guigrpa/jest-html/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/guigrpa/jest-html.git"
},
"scripts": {
"start": "node lib/server/startup",
"startProd": "node lib/previewer",
"compile": "rm -rf ./lib && mkdir lib && babel --out-dir lib --ignore \"**/__mocks__/**\",\"**/__tests__/**\" --copy-files src",
"compileWatch": "yarn compile -w",
"docs": "extract-docs --template docs/templates/README.md --output README.md",
"build": "yarn lint && yarn flow && yarn compile && yarn buildClient && yarn test && yarn docs && yarn xxl",
"buildClient": "yarn build:webpack -p --mode production --env.NODE_ENV=production",
"buildClientWatch": "yarn build:webpack --mode development -w",
"build:webpack": "webpack --config ./src/webpackConfig.js --color --progress --display-chunks",
"travis": "yarn compile && yarn testCovFullExceptMin",
"lint": "eslint src",
"flow": "flow check || exit 0",
"prettier": "prettier --single-quote --trailing-comma es5 --write \"src/**/*.js\"",
"test": "yarn testCovFull",
"testCovFull": "yarn testCovPrepare && yarn testDev && yarn testProd && yarn testCovReport",
"testCovFullExceptMin": "yarn testCovPrepare && yarn testDev && yarn testProd && yarn testCovReport",
"testCovFast": "yarn testCovPrepare && yarn testDev && yarn testCovReport",
"jest": "jest --watch --coverage",
"jestDebug": "node --debug-brk --inspect node_modules/.bin/jest -i",
"testCovPrepare": "rm -rf ./coverage .nyc_output .nyc_tmp && mkdir .nyc_tmp",
"testDev": "NODE_ENV=development jest --coverage && mv .nyc_output/coverage-final.json .nyc_tmp/coverage-dev.json",
"testProd": "NODE_ENV=production jest --coverage && mv .nyc_output/coverage-final.json .nyc_tmp/coverage-prod.json",
"testMin": "TEST_MINIFIED_LIB=1 jest --coverage && mv .nyc_output/coverage-final.json .nyc_tmp/coverage-min.json",
"testCovReport": "cp .nyc_tmp/* .nyc_output/ && nyc report --reporter=html --reporter=lcov --reporter=text"
},
"dependencies": {
"babel-polyfill": "6.26.0",
"body-parser": "^1.18.3",
"chokidar": "^2.0.4",
"commander": "^2.17.1",
"escape-html": "1.0.3",
"express": "^4.16.3",
"globby": "^8.0.1",
"lodash.debounce": "4.0.8",
"opn": "^5.3.0",
"pretty-format": "^23.5.0",
"socket.io": "^2.1.1",
"storyboard": "^3.1.4",
"storyboard-preset-console": "^3.1.4",
"timm": "^1.6.1",
"whatwg-fetch": "^2.0.4"
},
"peerDependencies": {
"jest": ">= 17.0.0"
},
"devDependencies": {
"babel-cli": "6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.0.0",
"babel-loader": "^7.1.5",
"babel-preset-es2015": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"coveralls": "^3.0.2",
"css-loader": "^1.0.0",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"extract-docs": "^1.6.1",
"file-loader": "^1.1.11",
"flow-bin": "^0.78.0",
"font-awesome": "^4.7.0",
"giu": "^0.16.0-alpha.1",
"jest": "^23.0.0",
"moment": "^2.22.2",
"node-sass": "^4.9.3",
"node-uuid": "1.4.8",
"nyc": "^12.0.2",
"oao": "^1.5.1",
"prettier": "^1.14.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-frame-component": "^4.0.1",
"react-marked-markdown": "^1.4.6",
"react-router-dom": "^4.3.1",
"react-test-renderer": "^16.4.2",
"sass-loader": "^7.1.0",
"socket.io-client": "^2.1.1",
"style-loader": "^0.22.1",
"typeface-gloria-hallelujah": "^0.0.54",
"webpack": "^4.1.1",
"webpack-cli": "^3.1.0",
"xxl": "1.2.0"
},
"jest": {
"testRegex": "src/.*__tests__/.*\\.(test|spec)\\.(js|jsx)$",
"roots": [
"<rootDir>/src"
],
"moduleNameMapper": {
"^typeface-.*": "<rootDir>/test/emptyObject.js",
"^.+\\.(css|less|sass)$": "<rootDir>/test/emptyObject.js",
"^.+\\.(gif|ttf|eot|svg)$": "<rootDir>/test/emptyString.js"
},
"coverageDirectory": ".nyc_output",
"coverageReporters": [
"json",
"text",
"html"
],
"snapshotSerializers": [
"<rootDir>/lib/serializer"
],
"collectCoverageFrom": [
"src/**/*.js",
"!src/previewer.js",
"!src/client/startup.js",
"!src/server/startup.js",
"!src/server/webpackConfig.js",
"!**/node_modules/**",
"!**/__tests__/**",
"!**/__mocks__/**"
],
"setupTestFrameworkScriptFile": "./test/setup.js"
}
}