Ts-jest: adding @type/xxx dependency does not clear the cache

Created on 2 Oct 2018  路  5Comments  路  Source: kulshekhar/ts-jest

Issue

CircleCI build failing after updating from 23.1.4 to 23.10.0.

Expected behavior

CircleCI build should not fail.

Debug log:

PR: https://github.com/developer239/localized-graphql-koa-typescript/pull/12
CircleCI log:
screenshot 2018-10-02 at 14 05 51

Minimal repo

https://github.com/developer239/localized-graphql-koa-typescript

Bug

Most helpful comment

@huafu Adding the dependency, clearing cache and fixing some additional typescript error works for me.

All 5 comments

@developer239 I think it's clear what's failing here, the message is explicit. You have to fix the typing issue, or disable the diagnostics.

Documentation can be found there https://kulshekhar.github.io/ts-jest/

@developer239 sorry that you read it like that, didn't mean that at all. Worst I can mean is that you wouldn't read. You don't know how many people submit issues because they don't read the error message.

Cloning your repo now and checking.

Edit: btw, you username didn't help :-p

@developer239 after installing some types, you have to yarn jest --clearCache, I guess that is an issue to report. I'm going to update this issue title to reflect that. There are then some other issues coming up, related to typings. I guess knowing this you can go on fixing the others. If you have any other issue unrelated, please open a new one and/or find live help on our slack channel https://bit.ly/ts-jest-slack. Sorry again for closing this too quickly, it looked too obvious.

@huafu Adding the dependency, clearing cache and fixing some additional typescript error works for me.

@developer239 either leave this open or create another issue about the clear cache necessary after adding @types deps. This is actually an issue 馃槈

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qm3ster picture qm3ster  路  3Comments

ahnpnl picture ahnpnl  路  3Comments

remcohaszing picture remcohaszing  路  4Comments

jbreckmckye picture jbreckmckye  路  3Comments

stangerjm picture stangerjm  路  4Comments