mirror of
https://github.com/enso-org/enso.git
synced 2024-11-23 16:18:23 +03:00
3c31155fe9
- Implements https://github.com/enso-org/cloud-v2/issues/631 - Tests for dashboard (`app/ide-desktop/lib/dashboard/`): - End-to-end tests - Unit tests - Component tests The purpose of this PR is to introduce the testing framework - more tests can be added later in separate PRs. # Important Notes To test, run `npm run test` in `app/ide-desktop`, or `app/ide-desktop/lib/dashboard/`. All tests should pass. Individual test types can be run using `npm run test-unit`, `npm run test-component` and `npm run test-e2e` in `app/ide-desktop/lib/dashboard/`. Individual end-to-end tests can be run using `npx playwright test -c playwright-e2e.config.ts test-e2e/<file name>.spec.ts` in `app/ide-desktop/lib/dashboard/`. End-to-end tests require internet access to pass (for things like fonts). This PR *does* check in screenshots to guard against visual regessions (and/or to make visual changes obvious)
35 lines
882 B
JSON
35 lines
882 B
JSON
{
|
|
"devDependencies": {
|
|
"@playwright/experimental-ct-react": "^1.38.0",
|
|
"@playwright/test": "^1.38.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"playwright": "^1.38.0",
|
|
"prettier": "^3.0.0"
|
|
},
|
|
"dependencies": {
|
|
"chromedriver": "^106.0.1",
|
|
"lint": "^0.8.19",
|
|
"run": "^1.4.0",
|
|
"tslib": "^2.6.2"
|
|
},
|
|
"name": "root",
|
|
"scripts": {
|
|
"format": "prettier --write .",
|
|
"prettier": "prettier --check .",
|
|
"lint": "npm --workspaces --if-present run lint",
|
|
"test": "npm --workspaces --if-present run test",
|
|
"typecheck": "npm --workspaces --if-present run typecheck",
|
|
"ci-check": "run-p test prettier lint typecheck"
|
|
},
|
|
"workspaces": [
|
|
"app/ide-desktop",
|
|
"app/ide-desktop/lib/*",
|
|
"app/ide-desktop/lib/dashboard/src/authentication",
|
|
"app/gui2",
|
|
"lib/rust/ensogl/pack/js"
|
|
],
|
|
"overrides": {
|
|
"tslib": "$tslib"
|
|
}
|
|
}
|