-
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
Your configFile is invalid [Cypress] #13883
Comments
@shahraship can you share the project.json of the project that has component testing setup? |
{ |
it looks like your configuration is missing the sourceRoot property. It's usually set to this property is optional in the project.json schema, but used in angular component testing to pass to the angular under the hood. I'll update the preset to warn and just infer this value to but you can add the value to your project.json today and should get around the issue for now |
@barbados-clemens Is there any update on the issue? I got the same error "Your configFile is invalid" when running e2e test using nx. I have the src property defined in project.json like "sourceRoot": "apps/pojectA-e2e/src", //cypress.config.ts file import { defineConfig } from 'cypress'; export default defineConfig({ |
@Karla-Reyes is was merged in #13940 make sure you're on the latest nx and cypress and if the issue persists open a new issue. |
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. |
Current Behavior
Command I ran
nx component-test ng-app --verbose
Cypress Config file Content
import { defineConfig } from 'cypress';
import { nxComponentTestingPreset } from '@nrwl/angular/plugins/component-testing';
export default defineConfig({
component: nxComponentTestingPreset(__filename),
});
Expected Behavior
Expected to be able to run the component test
Github Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Additional Information
No response
The text was updated successfully, but these errors were encountered: