Skip to content
Snippets Groups Projects
test.js 1.21 KiB
Newer Older
/**
 * Only used by jest, not part of the distributed package
 */
Yannis Barlas's avatar
Yannis Barlas committed
const path = require('path')

const components = require('./components')

module.exports = {
  'pubsweet-server': {
    db: {
      host: 'localhost',
      port: '5432',
      database: 'test_db',
      user: 'test_user',
      password: 'password',
    },
    emailVerificationTokenExpiry: {
      amount: 24,
      unit: 'hours',
    },
    secret: 'whatASecret',
    passwordResetTokenExpiry: {
      amount: 24,
      unit: 'hours',
    },
Yannis Barlas's avatar
Yannis Barlas committed
    tempFolderPath: path.join(process.cwd(), 'temp'),
    useFileStorage: true,
  },
  pubsweet: {
    components,
  },
      editor: {
        displayName: 'Editor',
        role: 'editor',
      },
      author: {
        displayName: 'Author',
        role: 'author',
      },
    nonGlobal: {
      editor: {
        displayName: 'Editor',
        role: 'editor',
      },
      author: {
        displayName: 'Author',
        role: 'author',
      },
Yannis Barlas's avatar
Yannis Barlas committed
  fileStorage: {
    accessKeyId: 'cokoServerUser',
    secretAccessKey: 'superSecretUserPassword',
    bucket: 'uploads',
    protocol: 'http',
    host: 'localhost',
    port: '9000',
    minioConsolePort: '9001',
  },