
<%- tplImports('{ join }', 'path') %>
<%- tplImports('{ authenticationBase }', '@feathers-plus/test-utils') %>
<%- tplImports('config', '../config/default.json') %>

// Determine if environment allows test to mutate existing DB data.
const env = (config.tests || {}).environmentsAllowingSeedData || []<%- sc %>
if (!env.includes(process.env.NODE_ENV) || process.argv.includes('--noclient')) {
  // <%- lintDisableNextLineNoConsole %>
  console.log('SKIPPED - Test authentication.base.<%- js -%>')<%- sc %>
<%- tplTsOnly('  // @ts-ignore') %>
  return<%- sc %>
}

const appRoot = join(__dirname, '..')<%- sc %>
authenticationBase(appRoot, {
  delayAfterServerOnce: 500,
  delayAfterServerClose: 500,
  timeoutForStartingServerAndClient: 30000,
  timeoutForClosingingServerAndClient: 30000
})<%- sc %>
