Skip to content

Netlify functions are not available during test execution #102

@spamsch

Description

@spamsch

Versions

  • What is this plugin's version? latest
  • What is Cypress version? latest
  • What Netlify build image are you using? Ubuntu Xenial 16.04
  • What is the Node version if you know it? 12.18.0
  • What is the NPM version if you know it? 6.14.4

Describe the bug
When executing tests only static assets are being taken into account. Netlify functions are not provided. This means that all calls to ./functions fail. Locally I'm running netlify dev command to have functions ready.

Solution
Not sure on how to solve this. Perhaps cypress plugin could fire up a netlify server? Or I switch to testing the deployed site for now. But this is also not possible out of the box as baseUrl is set to localhost:8080.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions