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.

`rootDir` warnings in Webstorm in test files

See original GitHub issue

Current Behavior

Steps to reproduce:

  1. npx tsdx create mylib
  2. open /test/blah.test.tsx file in WebStorm
  3. You will see highlighted line: “import { Default as Thing } from ‘…/stories/Thing.stories’;”: tsdx2

Additional context

Your environment

Software Version(s)
TSDX “^0.13.2”
TypeScript “^3.8.3”
Browser Latest Chrome
npm/Yarn npm 6.12.0
Node v12.13.0
Operating System Win 10

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
shadesOfcodescommented, Oct 9, 2022

removing stories from include causes tsdx build to fail, tsdx is only able to build only when stories is in include

ignore the above statement, build error was coming from index.d.ts in the include, was conflicting with input file, changing it to asset.d.ts, fixed it, and also i removed ./stories from includes, everything works fine now. thanks a lot.

0reactions
shadesOfcodescommented, Oct 9, 2022

removing stories from include causes tsdx build to fail, tsdx is only able to build only when stories is in include

Read more comments on GitHub >

github_iconTop Results From Across the Web

TS6059: File '/mui-rff/test/TestUtils.tsx' is not under 'rootDir ...
tsconfig.json rootDir has been changed to ./src. ./ is now deprecated and will give a warning. I have a top level test directory...
Read more >
Run/Debug Configuration: Jest - WebStorm
In this dialog, create configurations for running Jest tests. ... Test file: choose this option to run only the tests from one file...
Read more >
Configuring project structure | WebStorm Documentation
Tests Tests folder folders let you keep code related to testing separately from production code. Resource Root Resources root folders: files ...
Read more >
Run/Debug Configuration: Jest | IntelliJ IDEA Documentation
In this dialog, create configurations for running Jest tests. ... Test file: choose this option to run only the tests from one file...
Read more >
Run inspections | WebStorm Documentation
Analyze code before committing it to Git ... If your project is under Git version control, you can configure the IDE to analyze...
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