piotrwitek / typesafe-actions

Typesafe utilities for "action-creators" in Redux / Flux Architecture
https://codesandbox.io/s/github/piotrwitek/typesafe-actions/tree/master/codesandbox
MIT License
2.41k stars 98 forks source link

Unable to run Jest tests with version 3.2.0 #122

Closed danielsogl closed 5 years ago

danielsogl commented 5 years ago

Description

I updated to the new release 3.2.0 and facing now some test errors because of a "missing" file.

FAIL src/Component/ProjectMeasuringCriteria/index.test.tsx
  ● Test suite failed to run

    Cannot find module './action' from 'index.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
      at Object.<anonymous> (node_modules/typesafe-actions/dist/index.js:4:16)

Looks like the path to the actions.d.ts file is wrong.

Steps to Reproduce

Create a new project with create-app, use redux and typesafe-actions and run some tests with jest.

Expected behavior

Project Dependencies

gurkerl83 commented 5 years ago

Same here

piotrwitek commented 5 years ago

Released V3.2.1 with the fix.