Closed heimwege closed 1 week ago
it is expected to work like it is used in wdio https://v5.webdriver.io/docs/typescript.html
Thanks for the information ππ» Then I'll try to create a (not) running sample of the above issue and post it here for following up
Here you go:
running npm run test:ts-app
on main works fine, running it on https://github.com/heimwege/wdi5/tree/wdi5-tsconfig-path-issue results in an error for the MultiInput.test.js
because of the import using a path as defined in tsconfig.
It's not exactly the same error message that I get in my repo (see above)
Error: Error: Cannot find package 'tsapptest' imported from <local path on my machine>\wdi5\examples\ui5-ts-app\test\e2e\MultiInput.test.ts
but hopefully it is caused by the same issue with the path.
hey π - silence for 30 days π€ ... anybody? π
closed π΄ because silencio π€« since an additional 14 days after staleness π
So I guess the answer is "no this is currently not supported" π€·ββοΈ
Hey guys ππ»
I just tried to use the paths defined in my
.tsconfig
in the wdi5 tests instead of the relative ones. In a TypeScript ui5 project with the transpile middleware that works perfectly fine. Also in the wdi5 test the TS compiler does not complain about the path.The path documentation states
So guess this is not (yet) supported but I wanted to ask so that it is documented somewhere in case someone else comes up with the same idea π
Sample:
.tsconfig:
Foo.test.ts
Executing the wdi5 tests fails with
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: 2.0.9UI5
version: 1.124.0wdio
-version (output ofwdio --version
): 8.37.0node
-version (output ofnode --version
): 18.20.1