* Enable biome rules: noUnusedVariables, noUnusedFunctionParameters, noUnusedImports * Apply new rules with format * remove unused currentReplaceContent * update nextTerminalId * fix all format issues * update biome config * add back applyContextOptimizations and killAllChromeBrowsers
20 lines
507 B
JavaScript
20 lines
507 B
JavaScript
function createStub(path) {
|
|
return new Proxy(() => {}, {
|
|
get: (_target, prop) => {
|
|
const fullPath = `${path}.${String(prop)}`
|
|
console.log(`Accessed stub: ${fullPath}`)
|
|
return createStub(fullPath)
|
|
},
|
|
apply: (_target, _thisArg, args) => {
|
|
console.log(`Called stub: ${path} with args:`, args)
|
|
return createStub(path)
|
|
},
|
|
construct: (_target, args) => {
|
|
console.log(`Constructed stub: ${path} with args:`, args)
|
|
return createStub(path)
|
|
},
|
|
})
|
|
}
|
|
|
|
module.exports = { createStub }
|