-
Notifications
You must be signed in to change notification settings - Fork 451
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
[ERROR] Unknown config option "transform" on jest v0.17 #56
Comments
Ok. It was unexpected breaking change for us. |
Ok, this was fixed in 57e8753. |
@Igmat: jest run normally, but the error message still there, which causes some confusing. Error: Unknown config option "transform" with value "[object Object]". This is either a typing
error or a user mistake and fixing it will remove this message. npm ls jest ts-jest typescript
+-- jest@17.0.0
+-- ts-jest@17.0.0
`-- UNMET PEER DEPENDENCY typescript@2.1.1
npm ERR! peer dep missing: typescript@~2.0.6, required by ts-jest@17.0.0 And please keep the configuration docs for version 0.1.13, because jest's website doesn't include it anymore. |
@redstrike, could you, please, create a simple repro for this? |
@Igmat, It seems that if I copy all of the test and source files + the same tsconfig.json & package.json to a new directory, install jest 17.0 + ts-jest 17.0. The error message no longer appears. I have tried to remove and reinstall them in my current project: npm rm -D jest ts-jest
npm i -D jest ts-jest But the error message still appears in my current project. Unfortunately, I have to roll back to jest 16, due to the latest jest and ts-jest cannot understand the usage of async/await in my source code and tests. it("can remember the last state after be rendered", function () __awaiter(this, void 0, void 0, function* () {
^^^^^^^^^
SyntaxError: Unexpected identifier
at transformAndBuildScript (node_modules\jest\node_modules\jest-runtime\build\transform.js:316:10) |
Ok, so what is your node version and tsconfig? |
Oh, sorry. I forgot to mention that. I'm on mobile now. But you can see my current tsconfig.json at this issue: jestjs/jest#2073 Node v7.0 |
@redstrike, sorry for delay. I'll take a look on it tomorrow. |
@Igmat, thank you for your supportive. Without ts-jest, I could not figure out how to apply Jest into my trivial TypeScript project. Jest team has closed my issue jestjs/jest#2073 :) |
@redstrike, your problem is very strange - I can't reproduce it on Windows 10 x64 Enterprise with node v7 and typescript@next. Using your settings from jestjs/jest#2073 I get another output from it("can remember the last state after be rendered", function () { return __awaiter(_this, void 0, void 0, function () { which doesn't cause any errors. |
@Igmat, it seems that the issue has been solved on TypeScript side 😀 |
I don't sure this is an error message from jest or ts-jest. But most of my test suites are written in TypeScript, so I think that I will post this issue here.
Node v7.0
Jest v0.17
The text was updated successfully, but these errors were encountered: