MCPcopy
hub / github.com/prisma/prisma / test

Function test

packages/client-generator-js/tests/generator.test.ts:47–55  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

45
46expect.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)

Calls

no outgoing calls

Tested by

no test coverage detected