请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

报错。。。。哪里不对呢。。。

图片描述

{
  "name": "ts-axiosnew",
  "version": "0.0.0",
  "description": "",
  "keywords": [],
  "main": "dist/ts-axiosnew.umd.js",
  "module": "dist/ts-axiosnew.es5.js",
  "typings": "dist/types/ts-axiosnew.d.ts",
  "files": [
    "dist"
  ],
  "author": "zhiyong wang <wangzhioyong01@secoo.com>",
  "repository": {
    "url": "git@github.com:achillesz/ts-axiosNew.git"
  },
  "license": "MIT",
  "engines": {
    "node": ">=6.0.0"
  },
  "scripts": {
    "lint": "tslint  --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
    "prebuild": "rimraf dist",
    "build": "tsc --module commonjs && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src",
    "start": "rollup -c rollup.config.ts -w",
    "test": "jest --coverage",
    "test:watch": "jest --coverage --watch",
    "test:prod": "npm run lint && npm run test -- --no-cache",
    "deploy-docs": "ts-node tools/gh-pages-publish",
    "report-coverage": "cat ./coverage/lcov.info | coveralls",
    "commit": "git-cz",
    "semantic-release": "semantic-release",
    "semantic-release-prepare": "ts-node tools/semantic-release-prepare",
    "precommit": "lint-staged",
    "travis-deploy-once": "travis-deploy-once",
    "dev": "node examples/server.js"
  },
  "lint-staged": {
    "{src,test}/**/*.ts": [
      "prettier --write",
      "git add"
    ]
  },
  "config": {
    "commitizen": {
      "path": "node_modules/cz-conventional-changelog"
    }
  },
  "jest": {
    "transform": {
      ".(ts|tsx)": "ts-jest"
    },
    "testEnvironment": "jsdom",
    "testRegex": "/test/.*\\.(test|spec)\\.(ts)$",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js"
    ],
    "coveragePathIgnorePatterns": [
      "/node_modules/",
      "/test/"
    ],
    "coverageThreshold": {
      "global": {
        "branches": 90,
        "functions": 95,
        "lines": 95,
        "statements": 95
      }
    },
    "collectCoverageFrom": [
        "src/*.{js,ts}",
        "src/**/*.{js,ts}"
    ],
    "setupFilesAfterEnv": [
      "<rootDir>/test/boot.ts"
    ]
  },
  "prettier": {
    "semi": false,
    "singleQuote": true
  },
  "commitlint": {
    "extends": [
      "@commitlint/config-conventional"
    ]
  },
  "devDependencies": {
    "@commitlint/cli": "^7.1.2",
    "@commitlint/config-conventional": "^7.1.2",
    "@types/jasmine-ajax": "^3.3.1",
    "@types/jest": "^25.2.2",
    "@types/node": "^10.11.0",
    "@types/nprogress": "^0.2.0",
    "body-parser": "^1.18.3",
    "colors": "^1.3.2",
    "commitizen": "^3.0.0",
    "coveralls": "^3.0.2",
    "cross-env": "^5.2.0",
    "css-loader": "^3.5.3",
    "cz-conventional-changelog": "^2.1.0",
    "express": "^4.16.4",
    "husky": "^1.0.1",
    "jasmine-ajax": "^4.0.0",
    "jasmine-core": "^3.5.0",
    "jest": "^26.0.1",
    "jest-config": "^26.0.1",
    "lint-staged": "^8.0.0",
    "lodash.camelcase": "^4.3.0",
    "prettier": "^1.14.3",
    "prompt": "^1.0.0",
    "replace-in-file": "^3.4.2",
    "rimraf": "^2.6.2",
    "rollup": "^0.67.0",
    "rollup-plugin-commonjs": "^9.1.8",
    "rollup-plugin-json": "^3.1.0",
    "rollup-plugin-node-resolve": "^3.4.0",
    "rollup-plugin-sourcemaps": "^0.4.2",
    "rollup-plugin-typescript2": "^0.27.0",
    "semantic-release": "^15.9.16",
    "shelljs": "^0.8.3",
    "style-loader": "^1.2.0",
    "travis-deploy-once": "^5.0.9",
    "ts-jest": "^26.0.0",
    "ts-loader": "^5.3.3",
    "ts-node": "^7.0.1",
    "tslint": "^5.11.0",
    "tslint-config-prettier": "^1.15.0",
    "tslint-config-standard": "^8.0.1",
    "tslint-loader": "^3.5.4",
    "typedoc": "^0.17.4",
    "typescript": "^3.9.2",
    "webpack": "^4.28.4",
    "webpack-dev-middleware": "^3.5.0",
    "webpack-hot-middleware": "^2.24.3"
  },
  "publishConfig": {
    "registry": "https://npm.pkg.github.com/"
  },
  "dependencies": {
    "atob": "^2.1.2",
    "connect-multiparty": "^2.2.0",
    "cookie-parser": "^1.4.5",
    "nprogress": "^0.2.0",
    "xterm": "^4.5.0"
  }
}

正在回答

1回答

你跑我的源码测试会报错吗

0 回复 有任何疑惑可以回复我~
  • 提问者 旋涡鸣人_ #1
    没问题。。我的版本是这几天装的。
    回复 有任何疑惑可以回复我~ 2020-05-17 19:05:22
  • 提问者 旋涡鸣人_ #2
    git@github.com:achillesz/ts-axiosNew.git
    
    branch: paramsSerilizer 
    有空帮我跑一下看看。。谢谢啦
    回复 有任何疑惑可以回复我~ 2020-05-17 19:10:08
  • ustbhuangyi 回复 提问者 旋涡鸣人_ #3
    感觉和 jest 版本有关,我把你的 devDependencies 全部换成了我的版本,就不会报这个错误了,其它的测试报错应该是你代码逻辑问题。
    回复 有任何疑惑可以回复我~ 2020-05-18 00:02:06
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号