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

Skipping the test file without any error #103

Closed
sarahs07 opened this issue Feb 21, 2018 · 5 comments
Closed

Skipping the test file without any error #103

sarahs07 opened this issue Feb 21, 2018 · 5 comments

Comments

@sarahs07
Copy link

I am running jest-codemods src/app/page-components/login/forgot-password/*.spec.ts --force
but getting the result below without any transformation happening or helpful message

$ jest-codemods src/app/page-components/login/forgot-password/*.spec.ts --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.
ts
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.041seconds

@skovhus
Copy link
Owner

skovhus commented Feb 21, 2018

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

Duplicate of #102

@skovhus skovhus closed this as completed Feb 21, 2018
@sarahs07
Copy link
Author

sarahs07 commented Feb 21, 2018

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

@skovhus
Copy link
Owner

skovhus commented Feb 21, 2018

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

@sarahs07
Copy link
Author

sarahs07 commented Feb 21, 2018

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

@sarahs07
Copy link
Author

sarahs07 commented Feb 21, 2018

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants