UNPKG

aedes-cli

Version:
17 lines (10 loc) 453 B
const { test } = require('node:test') const { start, stop } = require('./helper') const { join } = require('path') const PERSISTENCE = process.env.DB || 'mongodb' console.log(`Testing ${PERSISTENCE} persistence`) test(`test ${PERSISTENCE} persistence from config`, async function () { const persistenceConfig = join(__dirname, `config/${PERSISTENCE}Config.js`) const setup = await start(['--config', persistenceConfig]) await stop(setup) })