Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching mechanism works inproperly #3333

Closed
lo-tp opened this issue Apr 20, 2017 · 1 comment
Closed

Caching mechanism works inproperly #3333

lo-tp opened this issue Apr 20, 2017 · 1 comment

Comments

@lo-tp
Copy link
Contributor

lo-tp commented Apr 20, 2017

Do you want to request a feature or report a bug?

I want to report a bug.

What is the current behavior?

When setting the transform argument, the transformation works smoothly.

However, when the argument is changed, the code is not transformed again.
This can be a tricky problem to be debugged.

If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.

Clone this repo and follow the README to see the bug.

What is the expected behavior?

Whenever the transform argument is changed, the code should be retransformed.

Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.

My Jest configuration:

{
  "moduleDirectories": ["node_modules", "src"],
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "json"
    ],
  "collectCoverage": true,
  "collectCoverageFrom" : ["src/**/*.{ts,tsx}"],
    "transform": {
      "\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
    },
  "coverageDirectory": "coverage",
  "coverageReporters": ["html", "text"],
  "testMatch": [
    "**/?(*.)(spec|test).ts?(x)"
  ],
  "moduleNameMapper": {
    "\\.(scss)|(less)$": "<rootDir>/node_modules/jest-css-modules"
  }
}

I was using jest v19.0.2, node v7.7.3 and yarn v0.18.1 .

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants