You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught exception in test/spec/app/store/auth/auth.actions.spec.ts
/node_modules/typesafe-actions/src/utils/validation.ts:79
Error: Argument 1 is invalid, it should be an action-creator instance from "typesafe-actions" or action type of type: string | symbol
throwInvalidActionTypeOrActionCreator (node_modules/typesafe-actions/src/utils/validation.ts:79:9)
map (node_modules/typesafe-actions/src/create-reducer.ts:120:15)
Function.reducerHandler (node_modules/typesafe-actions/src/create-reducer.ts:111:8)
Object.<anonymous> (src/app/store/auth/auth.reducer.ts:2:2138)
Module.m._compile (node_modules/ts-node/src/index.ts:858:23)
module.exports (node_modules/default-require-extensions/js.js:7:9)
Description
Mandatory info
createReducer
?// If yes PASTE HERE your types.d.ts
How to Reproduce
CodeSandbox Link
(PASTE HERE your codesandbox link)
No CodeSandbox Link
If no codesandbox, then please provide a full working code example below including actions, reducers and your custom types used in the example.
Error
Error trace
typesafe-actions/src/utils/validation.ts
Line 79 in cbed746
https://github.com/piotrwitek/typesafe-actions/blob/master/src/create-reducer.ts#L120
Expected behavior
Production seems to be working just fine, but not sure why the error is thrown when creating the reducer in a test environment.
Suggested solution(s)
An example of how to write tests would be helpful.
Project Dependencies
Environment (optional)
The text was updated successfully, but these errors were encountered: