-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress open fails with "Please provide an absolute path to a tsconfig.json as cypressConfig.env.tsConfig" #1707
Comments
Changing the plugin.js to set the tsconfig.json if not set works partial:
It shows all tests now, but if you run a test now, it fails with another message:
I am using Cypress 3.4.1. |
Hi @CSchulz, you can run e2e tests with We don't recommend using the |
Is the any plan to change something here? |
@CSchulz Did you have a workaround for this? I'm getting the same "path argument is required to res.sendFile" message when I run the test. Thanks! |
Any news? Some issue in my project. |
How do you do then to launch e2e test on a CI ? I haven't seen any example to do this and the only way I've seen personally is to try the official Cypress approach using cypress run command as the ng e2e fail on CI |
Here is another use case: I wish to run tests against deployed app without building it first, e.g. by passing baseUrl |
@CSchulz @ninogomez I'm getting the same "path argument is required to res.sendFile" message when I run the test. What should I do? |
@Elif5757 Which versions are you using? |
"@angular-devkit/build-angular": "^0.1002.0", |
@Elif5757 were you able to resolve this error? I'm facing the same problem |
@yjcyun hey I have solved the problem but i don't know the solution anymore. Find me on https://gitter.im/cypress-io/cypress |
to solve the "path argument is required to res.sendFile" error. I needed to update the path for fileServerFolder in the cypress.json config. this path should point to the tsconfig.json in the e2e project folder. |
TL;DR aka the solution Add below to your project-e2e/cypress.json file (no need to do it index.js as #1707 (comment) suggests): {
"env": {
"tsConfig": "tsconfig.json"
}
} Debug summary
"env": {
"tsConfig": "./tsconfig.json"
} Now you get error
|
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Expected Behavior
It should use the existing tsconfig.json.
Current Behavior
It fails because there is no tsconfig.json defined in the config.
Failure Information (for bugs)
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
npx cypress -P apps/test-e2e
Context
The text was updated successfully, but these errors were encountered: