Incorrect `workspaceRoot` in e2e plugin tests
See original GitHub issueCurrent Behavior
A plugin under test sees the repo in which it is developed as the workspaceRoot
, instead of the temporary workspace.
Expected Behavior
The plugin under test should see the temporary workspace as the workspaceRoot
.
Steps to Reproduce
Here is a repo to reproduce the issue.
Environment
> NX Report complete - copy this into the issue template
Node : 16.13.1
OS : darwin arm64
npm : 8.1.2
nx : 14.1.4
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : 14.1.4
@nrwl/eslint-plugin-nx : 14.1.4
@nrwl/express : Not Found
@nrwl/jest : 14.1.4
@nrwl/js : 14.1.4
@nrwl/linter : 14.1.4
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : Not Found
@nrwl/nx-plugin : 14.1.4
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/workspace : 14.1.4
typescript : 4.6.4
rxjs : 6.6.7
---------------------------------------
Community plugins:
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unable to debug a TypeScript e2e testing framework using ...
In VS Code, I created a TS file with a couple of variables and I am able to debug. tsconfig.json { "compileOnSave": true,...
Read more >Language Server Extension Guide - Visual Studio Code
Explain how to build a Language Server extension in VS Code using the provided Node SDK. Explain how to run, debug, log, and...
Read more >Troubleshooting - Jest
Troubleshooting. Uh oh, something went wrong? Use this guide to resolve issues with Jest. Tests are Failing and You Don't Know Why.
Read more >Adding End 2 End Tests to WordPress plugins using wp-env ...
I recently published a video walking through how End to End tests are set up for WPGraphQL, but I thought it would be...
Read more >Using Visual Studio Code to debug Jest based unit tests
Since we are performing a single run we set this flag to false. Step 3 Debugging our project. Now we can debug our...
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 Free
Top 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
I believe it’s correct now at least in version 14.3.6
Yes, you will see on the other thread I added a workaround. Hoping it’ll get fixed one day