`rootDir` warnings in Webstorm in test files
See original GitHub issueCurrent Behavior
Steps to reproduce:
npx tsdx create mylib
- open /test/blah.test.tsx file in WebStorm
- You will see highlighted line: “import { Default as Thing } from ‘…/stories/Thing.stories’;”:
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:
- Created 3 years ago
- Comments:5
Top 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 >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 FreeTop 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
Top GitHub Comments
ignore the above statement, build error was coming from
index.d.ts
in the include, was conflicting with input file, changing it toasset.d.ts
, fixed it, and also i removed./stories
from includes, everything works fine now. thanks a lot.removing stories from
include
causes tsdx build to fail, tsdx is only able to build only when stories is ininclude