This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Given prettyPrintResult, isArbitraryLike and TETS_PRINT_LIMIT as defined in `property-test.ts` exist, | |
// Here are two variants tha could be used from JS. I tried typing them to be used in TS, but | |
// it is very hard to type these functions. | |
export async function jsc_macro_1(t, ...args) { | |
const logsMap = new Map() | |
const defaultOpts = { quiet: true } | |
const passedOpts = typeof args[0] !== 'function' ? args.shift() : {} | |
const opts = Object.assign(defaultOpts, passedOpts) | |
const propertyFn = args.shift() |