Path mapping with typescript doesn't work with cucumber test runner
问题 When running cucumber-js with my typescript project, path remapping fails. Using relative paths is fine but unforgivably ugly. E.g. import ... from "@src/..." fails, while import ... from "../../../foo.ts" works fine. My project looks something like this: package.json tsconfig.json src/ **/*.ts Inside tsconfig.json , I specify remap paths: "paths": { "@src/*": [ "src/*" ], "*": [ "node_modules/*", "src/types/*" ] My commandline looks like this: cucumber-js 'src/**/*.feature' --require-module