Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.07 KB

dev-notes.md

File metadata and controls

33 lines (22 loc) · 1.07 KB

Dev-notes

Some semi-internal notes.

Bundling frontend

Bundle Command Main file
All npm start -- --configBundle all -
Edit app npm start -- --configBundle main frontend/edit-app/main.js
Website npm start -- --configBundle webpage frontend/webpage/main.js
Translations npm start -- --configBundle lang --configLang fi frontend/translations/${selectedLang}.js
Tests npm start -- --configBundle tests frontend/tests/main.js

Running frontend tests

  1. Bundle tests npm start -- --configBundle test
  2. Open browser localhost:8888/sivujetti/public/tests/index.html

Running backend tests

Important: remeber to add --exclude-group intensives when running multiple tests.

  1. cd backend
  2. composer test -- ./sivujetti/tests --exclude-group intensives
  3. composer test -- ./sivujetti/tests/src/dir
  4. composer test -- ./cli/tests/src/dir

Running e2e tests

Note: These tests are temporarily out of date.

npm test -- e2e-tests/tests/block-styles-edit-test.js