janders223/serverless_testing_library

View on GitHub
src/index.js

Summary

Maintainability
A
0 mins
Test Coverage
const { resolve } = require('path')
const { readFileSync } = require('fs')
const createApp = require('./app')

module.exports = (config = 'serverless.yml') => {
  const path = resolve(process.cwd(), config)

  const svConfig = readFileSync(path, 'utf8')

  return createApp(svConfig)
}