Skip to content

Latest commit

Β 

History

History
46 lines (34 loc) Β· 1.99 KB

File metadata and controls

46 lines (34 loc) Β· 1.99 KB

@vittel/e2e

End to end tests suite.

Package structure

@vittel/e2e/
β”œβ”€β”€ .vscode/                 # vscode debug config
β”œβ”€β”€ src/                     # e2e package source code
β”‚   β”œβ”€β”€ *.test.ts            # end-to-end test files
β”‚   └── stub.test.ts         # stub unit test file
β”œβ”€β”€ babel.config.js          # local babel config
β”œβ”€β”€ jest-puppeteer.config.js # jest-puppeteer config file
β”œβ”€β”€ jest.config.js           # local jest config
β”œβ”€β”€ package.json             # e2e package dependencies and tasks
└── tsconfig.json            # local tsconfig

Specific CI/CD tasks

  • build: does not build anything but required for CI/CD orchestration, do not remove.
  • docker:build: does not build anything but required for CI/CD orchestration, do not remove.

Required shell variables for package.json scripts

variable usage
ENV_DIR Directory for dotenv config files
NODE_ENV Run node in development or production mode
  • The value for each variable must be consistent across all scripts.

Published assets

  • None.

Notes

  • Caution : ALL monorepo packages have to be included as dependencies, except other e2e packages.
  • This is mandatory for the CI/CD pipeline to fail if any build asset fails to validate end-to-end tests.
  • ENV_DIR and NODE_ENV point to the production config file of @vittel/backend.
  • Additional variables for dotenv configs may be added if the tests involve multiple node based services.
  • NODE_ENV should always be set to production since end to end tests run against production builds.
  • src/stub.test.ts should not be removed so the test task does not fail if no other test files exist.
  • Since the jest syntax conflicts with the typedoc syntax, e2e packages cannot be documented at all.