https://github.com/cdaringe/testcafe-path-resolution-typescript
https://github.com/cdaringe/testcafe-path-resolution-typescript
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cdaringe/testcafe-path-resolution-typescript
- Owner: cdaringe
- Created: 2022-12-22T00:08:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T14:53:30.000Z (over 2 years ago)
- Last Synced: 2025-02-18T06:08:49.934Z (over 1 year ago)
- Language: TypeScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# problem
typescript resolves `foo` dependency just fine using [`tsconfig::compilerOptions::paths`](https://github.com/cdaringe/testcafe-path-resolution-typescript/blob/a7ac2555021f9e85dfb7817c38ba763cb9f52687/tsconfig.json#L10) config, but downstream compilation fails, unable to resolve `foo`.
# demo
- `pnpm install` (or npm, whatever)
- `pnpm test`
```
Error: Cannot find module 'foo'
Require stack:
- /demo/test/page.test.ts
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/compiler/test-file/formats/es-next/compiler.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/compiler/compilers.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/compiler/index.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/runner/bootstrapper.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/runner/index.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/testcafe.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/index.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/cli/cli.js
- /demo/node_modules/.pnpm/testcafe@2.2.0-rc.1/node_modules/testcafe/lib/cli/index.js
```