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

来源:12-4 辅助模块单元测试 util 模块测试-

旋涡鸣人_

2020-05-16

图片描述

{
  "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回答

ustbhuangyi

2020-05-17

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

0
4
旋涡鸣人_
回复
ustbhuangyi
嗯 我弄了半天也没找到问题 老师要解决了 就给我留言回复下。我先关了。
2020-05-18
共4条回复

下一代前端开发语言 TypeScript从零重构axios

课程从零开始重构功能完整的JS库,是学习造轮子的不二之选!

2629 学习 · 877 问题

查看课程