MCPcopy Create free account
hub / github.com/sindresorhus/execa / getNestedOptions

Function getNestedOptions

test/helpers/nested.js:62–69  ·  view source on GitHub ↗
(options, optionsFixture, optionsInput)

Source from the content-addressed store, hash-verified

60// Some subprocess options cannot be serialized between processes.
61// For those, we pass a fixture filename instead, which dynamically creates the options.
62export const getNestedOptions = async (options, optionsFixture, optionsInput) => {
63 if (optionsFixture === undefined) {
64 return options;
65 }
66
67 const {getOptions} = await import(new URL(optionsFixture, NESTED_URL));
68 return {...options, ...getOptions({...options, ...optionsInput})};
69};

Callers 2

nested.jsFile · 0.90

Calls 1

getOptionsFunction · 0.50

Tested by

no test coverage detected