UNPKG

@amag-ch/sap_cap_common_objectstore

Version:

NodeJS library to communicate with an objectstore

12 lines (9 loc) 374 B
const fs = require('node:fs') cds.on('connect', async (srv) => { if (!cds.model || cds.cli?.command === 'deploy' || srv?.name !== 'db' ) return const testSource = `${cds.root}/test/objectstore` if (fs.existsSync(testSource)) require('@amag-ch/sap_cap_common_objectstore').testing.register(testSource) await cds.connect.to('objectstore') })