Project template for implementing, running and debugging LeanIX GraphQL tasks as unit tests, or more advanced UI tasks as E2E tests, based on Typescript, Jest and Playwright
leanix-pathfinder-scripts requires the following to run:
- Node.js v18.4.0+
- npm (normally comes with Node.js)
- Visual Studio Code
- Recommended Visual Studio Code extensions:
git clone git@github.com:fazendadosoftware/leanix-pathfinder-scripts.git
cd leanix-pathfinder-scripts
npm install
-
Add a ".env" file to the project root folder with the following content:
LEANIX_HOST=your workspace host here, e.g. us.leanix.net LEANIX_APITOKEN=your api token here
-
Open the
__tests__
folder and inspect the different tests located insideunit
ande2e
sub-folders. If you have the Jest and Playwright Visual Studio Code extensions installed, you can run or debug each test individually.