https://github.com/stipsan/jest-resolver-bug
Crazy edge case
https://github.com/stipsan/jest-resolver-bug
Last synced: over 1 year ago
JSON representation
Crazy edge case
- Host: GitHub
- URL: https://github.com/stipsan/jest-resolver-bug
- Owner: stipsan
- License: mit
- Created: 2017-11-27T13:23:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:26:28.000Z (over 2 years ago)
- Last Synced: 2025-01-19T14:28:18.047Z (over 1 year ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crazy bug of the year
This is the smallest repro-case I could boil it down to.
After cloning and `yarn install`-ing, run `yarn test`.
Notice how it exits with a non-zero exit code with no error at all.
I've only managed to reproduce this behavior with this specific combination of circumstances:
1. A moduleNameMapper-mapped import is used
2. The import contains double slashes.
3. It's an es6 import.
4. The import is followed by a relative import.
5. It doesn't have to be an es6 import.