Skip to content

Add tests #7

@8eecf0d2

Description

@8eecf0d2

Since the different Netlify Services aren't completely defined, testing will be based on current assumptions about how things should work. In addition to writing tests, adding more error handlers should be considered (eg, invalid webpack config).

Unit Tests

Config

  • parseWebpackConfig()
  • parseNetlifyConfig()

Webpack

  • Webpack.initialize()
  • Webpack.watch()
  • Webpack.build()

Server

  • Server.initialize()
  • Server.listen()
  • Server.close()
  • Server.routeRedirects()
  • Server.routeHeaders()
  • Server.routeLambdas()
  • Server.lambdaRequest()
  • Server.lambdaContext()

Integration (sorta functional)

Redirects

  • Standard Redirect
  • Standard Rewrite
  • Proxy Rewrite
  • Placeholder (Path Params)
  • Placeholder (Query Params)
  • Force

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions