Comments (5)
Thanks for your quick response. :)
I thought maybe there is another way.
We will keep the CommonJS output for now.
from cucumber-js.
+1 Same issue here...
from cucumber-js.
Thanks @samydoesit for raising, and taking the time to make that repro.
I've looked at the config there, but my understanding is that it would not work with or without Cucumber. From the relevant ts-node documentation:
...
"paths"
are intended to describe mappings that the build tool or runtime already performs, not to tell the build tool or runtime how to resolve modules. In other words, they intend us to write our imports in a waynode
already understands. For this reason, ts-node does not modifynode
's module resolution behavior to implement"paths"
mappings.
ts-config-paths tends to be used for this, but from what I can see lacks ESM support for now, so unfortunately to have path mapping like this you may need to go back to CommonJS output.
from cucumber-js.
To clarify, is there no way to import from the local files when using ts-node/esm? I can't seem to import even if I use a relative path, even if the files are in the same directory, but perhaps that's a different issue.
from cucumber-js.
Related Issues (20)
- Line number of scenario is not considered when wild card used in feature file path HOT 4
- Adding timestamps to html or json report HOT 1
- Update Test Step Status programmatically
- Recent tmp update breaks cucumber-js on Node14 HOT 4
- getting the report after running cucumber programmatically HOT 1
- Inject steps at runtime HOT 1
- Question - How to provide multiple feature file path in cucumber.js file HOT 1
- can we use this with cypress and typescript HOT 1
- Background steps are reported without keyword Background in json report HOT 9
- Step with result status = pending does not contain an error_message HOT 1
- worldParameters not modifiable using Before and After hooks after updating to the latest versions after v10.0.1 HOT 4
- ESM with TS not working HOT 1
- JSON format issue, especially with larger reports, such as 500MB in size HOT 4
- CustomWorld Context Retention between Steps of the same Scenario: (JS Only) Backwards Compatibility (Known to be affected 8.11.1-9.6.0) && 10.8.0 with TS 5.4.5 HOT 7
- Facing Issue with Parallelism in Jenkins while running Playwright Cucumber tests HOT 8
- reflect-metadata 0.2.1 deprecated - wants bumping up to 0.2.2
- Running Cucumber In the Browser?
- Obsolete dependencies
- Possibility of setting up mock data just once for all the feature files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cucumber-js.