@@ -304,8 +304,26 @@ We use PHPUnit for API tests:
304304task test:api
305305```
306306
307+ ### Unit tests - Vitest
308+
309+ Use Vitest for unit and component tests (pure functions, utilities, components with jsdom).
310+
311+ Test files are located in ` assets/tests/ ` alongside the Playwright tests.
312+
313+ Vitest picks up ` *.test.js ` files.
314+
315+ Unit tests for client and admin utility functions use Vitest:
316+
317+ ``` shell
318+ task test:unit
319+ ```
320+
307321### Frontend tests - Playwright
308322
323+ Use Playwright for end-to-end tests that run against the full application in a real browser.
324+
325+ Playwright picks up ` *.spec.js ` files.
326+
309327To test the React apps we use playwright.
310328
311329#### Updating Playwright
@@ -391,22 +409,23 @@ Configuration of the project should be added to `.env.local`. Default values are
391409
392410``` dotenv
393411###> App ###
394- APP_ACTIVATION_CODE_EXPIRE_INTERVAL=P2D
395- APP_KEY_VAULT_SOURCE=ENVIRONMENT
396- APP_KEY_VAULT_JSON="{}"
397- EVENTDATABASE_API_V2_CACHE_EXPIRE_SECONDS=300
412+ DEFAULT_DATE_FORMAT='Y-m-d\TH:i:s.v\Z'
413+ ACTIVATION_CODE_EXPIRE_INTERVAL=P2D
414+ KEY_VAULT_SOURCE=ENVIRONMENT
415+ KEY_VAULT_JSON="{}"
398416TRACK_SCREEN_INFO=false
399417TRACK_SCREEN_INFO_UPDATE_INTERVAL_SECONDS=300
400418###< App ###
401419```
402420
403- - APP_ACTIVATION_CODE_EXPIRE_INTERVAL: Specifies how long an external user activation code should live.
421+ - DEFAULT_DATE_FORMAT: The default format of serialized dates.
422+ - ACTIVATION_CODE_EXPIRE_INTERVAL: Specifies how long an external user activation code should live.
404423 The format of the interval should follow < https://www.php.net/manual/en/dateinterval.construct.php > .
405424
406425 ** Default** : 2 days.
407- - APP_KEY_VAULT_SOURCE : Source of key-value pair for ` src/Service/KeyVaultService ` . Atm. "ENVIRONMENT" is the only
426+ - KEY_VAULT_SOURCE : Source of key-value pair for ` src/Service/KeyVaultService ` . Atm. "ENVIRONMENT" is the only
408427 option.
409- - APP_KEY_VAULT_JSON : A json object formatted as a string. Contains key-value pairs that can be accessed by through
428+ - KEY_VAULT_JSON : A json object formatted as a string. Contains key-value pairs that can be accessed by through
410429 ` src/Service/KeyVaultService ` .
411430- EVENTDATABASE_API_V2_CACHE_EXPIRE_SECONDS: What should the expire be for cache entries in EventDatabaseApiV2FeedType?
412431- TRACK_SCREEN_INFO: Should screen info be tracked (true|false)?
@@ -494,9 +513,11 @@ CLIENT_DEBUG=false
494513 waiting for being activated in the administration.
495514
496515 ** Default** : 20 s.
497- - CLIENT_REFRESH_TOKEN_TIMEOUT: How often (milliseconds) should it be checked whether the token needs to be refreshed?
516+ - CLIENT_RELEASE_TIMESTAMP_INTERVAL_TIMEOUT: How often (milliseconds) should it be checked whether a new release is
517+ available?
518+ Value should not be lower than 5 minutes, since release.json is only fetched with a minimum of 5 minutes interval.
498519
499- ** Default** : 30 s .
520+ ** Default** : 10 m .
500521- CLIENT_REFRESH_TOKEN_TIMEOUT: How often (milliseconds) should it be checked whether the token needs to be refreshed?
501522
502523 ** Default** : 60 s.
@@ -523,6 +544,17 @@ CLIENT_DEBUG=false
523544- See ` docs/configuration/openid-connect.md ` for configuration of OpenID Connect.
524545- See ` docs/configuration/calendar-api-feed.md ` for configuration of CalenderApiFeedType.
525546
547+ #### Event Database Api V2 Feed Type
548+
549+ ``` dotenv
550+ ###> Event Database Api V2 Feed Source ###
551+ EVENTDATABASE_API_V2_CACHE_EXPIRE_SECONDS=300
552+ ###< Event Database Api V2 Feed Source ###
553+ ```
554+
555+ - EVENTDATABASE_API_V2_CACHE_EXPIRE_SECONDS: What should the expiration be for cache entries in
556+ EventDatabaseApiV2FeedType?
557+
526558## Rest API & Relationships
527559
528560To avoid embedding all relations in REST representations but still allow the clients to minimize the amount of API calls
0 commit comments