path argument is required to res.sendFile leads to "No tests found" error
See original GitHub issueCurrent behavior
After running npx cypress open
(and starting tests) Cypress runner encounters error below
Terminal shows information:
Desired behavior
Cypress runner “sees” tests and lets me run them.
Test code to reproduce
In pursuit of solution I followed suggestions from issue https://github.com/nrwl/nx/issues/1707, but workarounds stored there didn’t do the trick. Some code:
cypress.json
package.json
Cypress Version
8.6.0
Other
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Express.js: TypeError: path argument is required to res.sendFile
Here is the error while clicking on the download button. TypeError: path argument is required to res.sendFile. javascript · node.js ...
Read more >cypress-io/cypress - Gitter
New to cypress with Nx. I'm getting this if I run a test. path argument is required to res.sendFile.
Read more >Express.js res.sendFile() Function - GeeksforGeeks
The res.sendFile() function basically transfers the file at the given path and it sets the Content-Type response HTTP header field based on ...
Read more >File uploads using Node.js - CodeForGeek
You need to add that folder as a static path where your file is getting uploaded and once the client is trying to...
Read more >API Reference - Express 4.x
A new body object containing the parsed data is populated on the request object after the middleware (i.e. req.body ), or an empty...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
me too,use
[file:preprocessor](https://docs.cypress.io/api/plugins/preprocessors-api#Usage)
ts to jsreply
i resolve bug:at plugin/index.js
Make sure that callback function for file:preprocessor returns correct result: https://docs.cypress.io/api/plugins/preprocessors-api#The-callback-function-should-return-one-of-the-following
a promise that resolves with a path to the compiled file or rejects with error
For me this was the reason for such error message. I passed a callback that was calling preprocessor generation inside and returning wrong result.Example with error:
Correct example:
Example with console.log: