(val)
| 45 | |
| 46 | expect.addSnapshotSerializer({ |
| 47 | test(val) { |
| 48 | if (typeof val !== 'object' || val == null) { |
| 49 | return false |
| 50 | } |
| 51 | if (!('fromEnvVar' in val && 'native' in val && 'value' in val)) { |
| 52 | return false |
| 53 | } |
| 54 | return val.native === true && val.value !== 'NATIVE_BINARY_TARGET' |
| 55 | }, |
| 56 | serialize(val, config, indentation, depth, refs, printer) { |
| 57 | const newVal = { ...val, value: 'NATIVE_BINARY_TARGET' } |
| 58 | return printer(newVal, config, indentation, depth, refs) |
no outgoing calls
no test coverage detected