question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incorrect `workspaceRoot` in e2e plugin tests

See original GitHub issue

Current 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:open
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
khalilou88commented, Aug 31, 2022

I believe it’s correct now at least in version 14.3.6

1reaction
simondotmcommented, Jun 3, 2022

Yes, you will see on the other thread I added a workaround. Hoping it’ll get fixed one day

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found