Skip to content
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

fix(testing): fix react CT w/ vite and dependant projects #16475

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

barbados-clemens
Copy link
Contributor

@barbados-clemens barbados-clemens commented Apr 21, 2023

Current Behavior

When using vite with react component testing and trying to import a dependent project, vite will throw an error saying it's outside of the allows list of reading from the file system

Expected Behavior

vite should be allowed to react dependent projects files in CT

Related Issue(s)

Note this is only an issue in CT because cypress loads the given vite file which is missing the fs allow entry, but isn't a problem when serving projects via nx due to vite executor providing this value automatically (which cypress does not do)

TODO:

  • write tests

@vercel
Copy link

vercel bot commented Apr 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 28, 2023 6:58pm

@barbados-clemens barbados-clemens self-assigned this Apr 21, 2023
@barbados-clemens barbados-clemens added scope: react Issues related to React support for Nx scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx labels Apr 21, 2023
@github-actions
Copy link

github-actions bot commented May 4, 2023

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants