-
Notifications
You must be signed in to change notification settings - Fork 2
Add tests #7
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
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