cucumber / cucumber-js-examples

Examples of using Cucumber-JS
https://github.com/cucumber/cucumber-js
MIT License
25 stars 11 forks source link

Cucumber-js and angular #18

Open cheikhnadiouf opened 10 months ago

cheikhnadiouf commented 10 months ago

I don't know what happens since one year but it is a HUGE nightmare now to make Cucumber-js and puppeter working on Angular today. Can we have a fresh example of cucumber-js compatible with angular ? try it yourself, you will love all the bugs lol.

cheikhnadiouf commented 10 months ago

Can we have a rapid basic example of cucumber-js in angular typescript project ?

The ts-node --project for extends of tsconfig.e2e-cucumber.json was not working ( also not working cross-env TS_NODE_PROJECT=... )

I solved this by modifying the tsconfig.json :

{
  "compilerOptions": {
     // stuff
  }
  "ts-node": {
    "compilerOptions": {
      "module": "CommonJS",
      "target": "ESNext",
      "esModuleInterop": true,
      "moduleResolution": "node",
      "verbatimModuleSyntax": false
    }
  },
}

Source: https://github.com/webpack/webpack.js.org/issues/2733