Please be sure to read Attention first!
Attension This project uses Playwright for testing. Therefore, it must meet Playwright's System requirements. If you only have a Linux environment that does not meet the System requirements(e.g., RHEL), you can develop and test with VS Code devcontainer.
The directory structure is as follows.
The code for the project to be developing is located in src/lib
. Other files exist for E2E testing in Playwright.
├── src
│ ├── app.d.ts
│ ├── app.html
│ ├── lib
│ │ ├── cookie-signature.ts
│ │ ├── index.ts
│ │ ├── memory-store.ts
│ │ └── session.ts
│ └── routes
│ └── +page.svelte
There are two types of tests: unit tests and integration tests.
In integration testing, tests are implemented to cover the options in SveltekitSessionConfig
. Switching between option settings is done by a pseudo DI. The tests to be executed are also designed in such a way that the file name determines the target of execution.
Please take the following actions according to the error.
Error: browserType.launch: Executable doesn't exist at /home/<...>/.cache/ms-playwright/chromium-1091/chrome-linux/chrome
Please run the yarn playwright install
command.
Please run the yarn playwright install-deps
command.