Giter Site home page Giter Site logo

typescript-jest-example's People

Contributors

bromix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

typescript-jest-example's Issues

Bump jest version

I think these are the last versions that work properly with import statements:

{ 
    "@types/jest": "^26.0.0",
    "jest": "^26.0.0",
    "ts-jest": "^26.0.0"
}

If you bump this to v27 or higher you'll get:

Error [ERR_REQUIRE_ESM]: require() of ES Module ~/project/node_modules/wrap-ansi/index.js from ~/project/node_modules/jest-cli/node_modules/cliui/build/index.cjs not supported.
Instead change the require of index.js in ~/project/node_modules/jest-cli/node_modules/cliui/build/index.cjs to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (~/project/node_modules/jest-cli/node_modules/cliui/build/index.cjs:293:14)
    at Object.<anonymous> (~/project/node_modules/jest-cli/node_modules/yargs/build/index.cjs:1:60678)
    at Object.<anonymous> (~/project/node_modules/jest-cli/node_modules/yargs/index.cjs:5:30)
    at _yargs (~/project/node_modules/jest-cli/build/run.js:30:39)
    at buildArgv (~/project/node_modules/jest-cli/build/run.js:143:26)
    at Object.run (~/project/node_modules/jest-cli/build/run.js:118:24)
    at Object.<anonymous> (~/project/node_modules/jest-cli/bin/jest.js:16:17)
    at Object.<anonymous> (~/project/node_modules/jest/bin/jest.js:12:3)
error Command failed with exit code 1.

Do you know if there's a way to fix this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.