meeshkan / unmock-js

Fuzz test your REST API calls
https://unmock.io
93 stars 8 forks source link

Disable type-checking in ts-jest. #352

Closed ksaaskil closed 4 years ago

ksaaskil commented 4 years ago

Tests fail quite randomly with the following kind of output:

FAIL  packages/unmock/src/__tests__/end-to-end/simple-service.test.ts
  ● Test suite failed to run

    TypeError: Unable to require `.d.ts` file.
    This is usually the result of a faulty configuration or import. Make sure there is a `.js`, `.json` or another executable extension available alongside `interfaces.ts`.

In this thread, the given solution is to disable type-checking in ts-jest by setting isolatedModules parameter to true. This should be fine in our case as we run separate type-checking in the build pipeline.

codecov-io commented 4 years ago

Codecov Report

Merging #352 into dev will increase coverage by 0.11%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #352      +/-   ##
==========================================
+ Coverage   80.95%   81.06%   +0.11%     
==========================================
  Files          52       53       +1     
  Lines        2347     2361      +14     
  Branches      577      577              
==========================================
+ Hits         1900     1914      +14     
  Misses        447      447
Impacted Files Coverage Δ
packages/unmock-core/src/service/index.ts 100% <0%> (ø) :arrow_up:
packages/unmock-core/src/types.ts 100% <0%> (ø)
...kages/unmock-node/src/loggers/snapshotter/index.ts 85.48% <0%> (+0.23%) :arrow_up:
packages/unmock-core/src/service/spy/index.ts 94.73% <0%> (+0.29%) :arrow_up:
packages/unmock-core/src/index.ts 85% <0%> (+0.51%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d3e47af...fcdbeac. Read the comment docs.