UNPKG

jest-vue-preprocessor

Version:

Preprocessor that allows importing of .vue files in jest tests

120 lines (119 loc) 2.81 kB
{ "name": "jest-vue-preprocessor", "version": "1.7.1", "description": "Preprocessor that allows importing of .vue files in jest tests", "main": "index.js", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/vire/jest-vue-preprocessor.git" }, "bugs": { "url": "https://github.com/vire/jest-vue-preprocessor/issues" }, "author": "Viliam Elischer <code.vire@gmail.com>", "engines": { "node": ">= 8.16" }, "keywords": [ "jest", "vue", "test", "preprocessor", "transform" ], "dependencies": { "babel-plugin-transform-runtime": "6.23.0", "find-babel-config": "1.2.0", "vue-property-decorator": "8.3.0" }, "devDependencies": { "@babel/core": "7.8.4", "@babel/preset-env": "7.8.4", "@babel/template": "7.8.3", "babel-jest": "24.9.0", "commitizen": "3.1.2", "cz-conventional-changelog": "2.1.0", "eslint": "6.6.0", "husky": "3.0.9", "jest": "24.9.0", "lint-staged": "10.0.7", "prettier": "1.19.0", "pug": "2.0.4", "standard-version": "7.1.0", "typescript": "3.6.4", "validate-commit-msg": "2.14.0", "vue": "2.6.10", "vue-template-compiler": "2.6.10", "vue-template-es2015-compiler": "1.9.1" }, "scripts": { "cz": "git-cz", "verify": "npm run style && npm t", "test": "jest", "test:watch": "npm t -- --watch", "test:coverage": "npm t -- --coverage", "test:ci": "npm run test:coverage", "style": "eslint .", "style:fix": "npm run style -- --fix" }, "jest": { "moduleFileExtensions": [ "js", "vue" ], "coverageThreshold": { "global": { "branches": 40, "functions": 80, "lines": 90, "statements": 80 } }, "moduleNameMapper": { "^test/fixtures/(.*)": "<rootDir>/test/fixtures/$1" }, "transform": { "^.+\\.js$": "<rootDir>/node_modules/babel-jest", ".*\\.(vue)$": "<rootDir>/index.js" } }, "config": { "commitizen": { "path": "cz-conventional-changelog" }, "validate-commit-msg": { "types": "conventional-commit-types", "maxSubjectLength": 120 } }, "lint-staged": { "*.js": [ "prettier --write", "style:fix", "git add" ] }, "peerDependencies": { "typescript": "*", "vue-template-compiler": "2.6.x", "vue-template-es2015-compiler": "1.9.x" }, "prettier": { "printWidth": 100, "tabWidth": 2, "useTabs": false, "semi": true, "bracketSpacing": true, "jsxBracketSameLine": true, "singleQuote": true, "trailingComma": "es5" }, "husky": { "hooks": { "commit-msg": "validate-commit-msg", "pre-commit": "lint-staged", "pre-push": "npm run verify" } } }