Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Question: Is there any way to use local jest configuration ? #396

Closed
@somarlyonks

Description

@somarlyonks

Is this a bug report?

No

I mean, a jest.config.js in rootDir, it looks like the createJestConfig just ignore the local configuration, and if I run it with

react-scripts-ts test --coverage --config=jest.config.js --env=jsdom

It complains that argv.config.match is not a function.

Env

  • node 8.10

  • dependecies

  "dependencies": {
    "bootstrap": "^4.1.1",
    "react": "^16.4.0",
    "react-dom": "^16.4.0"
  },
  "devDependencies": {
    "@types/jest": "^23.0.0",
    "@types/node": "^10.3.0",
    "@types/react": "^16.3.16",
    "@types/react-dom": "^16.0.5",
    "node-sass-chokidar": "^1.3.0",
    "react-scripts-ts": "2.17.0",
    "npm-run-all": "^4.1.3",
    "coveralls": "^3.0.2",
    "node-fetch": "^2.2.0",
    "typescript": "^3.0.3"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions