Coder Social home page Coder Social logo

Comments (5)

skovhus avatar skovhus commented on May 20, 2024

We currently don't support TypeScript. But you can try with --parser flow

Duplicate of #102

from jest-codemods.

sarahs07 avatar sarahs07 commented on May 20, 2024

Thanks for getting back. However, I was really hoping to find a workaround to able to convert my jasmine tests to Jest perhaps by adding ts-jest as a parser.

Even with --parse flow the file is getting skipped

image

from jest-codemods.

skovhus avatar skovhus commented on May 20, 2024

Try renaming the file to .js and see if that works. If not can you paste the content here?

from jest-codemods.

sarahs07 avatar sarahs07 commented on May 20, 2024

I renamed the file from .ts to .js and it's still skipping the file without any info...

$ jest-codemods src/app/page-components/login/forgot-password/*.spec.js --force
? Which test library would you like to migrate from? Jasmine: this usage
? Will you be using Jest on Node.js as your test runner? Yes, use the globals provided by Jest (recommend
ed)
WARNING: Git directory is not clean. Forcibly continuing.
Executing command: jscodeshift -t C:\Users\Sarah.Saad\AppData\Roaming\npm\node_modules\jest-codemods\dist
transformers\jasmine-this.js src/app/page-components/login/forgot-password/forgot-password.component.spec.
js
Processing 1 files...
Spawning 1 workers...
Sending 1 files to free worker...
All done.
Results:
0 errors
0 unmodified
1 skipped
0 ok
Time elapsed: 1.070seconds

from jest-codemods.

sarahs07 avatar sarahs07 commented on May 20, 2024

here is the screenshot of Jasmin test file, Typescript code not happy with the .js extension :)

image

from jest-codemods.

Related Issues (20)

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.