( msgOrOpts?: string | T, )
| 79 | } |
| 80 | |
| 81 | export function getOptions<T>( |
| 82 | msgOrOpts?: string | T, |
| 83 | ): T { |
| 84 | if (msgOrOpts === undefined) return {} as T; |
| 85 | |
| 86 | if (typeof msgOrOpts === "object" && msgOrOpts !== null) { |
| 87 | return msgOrOpts; |
| 88 | } |
| 89 | |
| 90 | return { msg: msgOrOpts } as T; |
| 91 | } |
| 92 | |
| 93 | export function getSnapshotNotMatchMessage( |
| 94 | actualSnapshot: string, |
no outgoing calls
no test coverage detected