Fix playwright modules tests
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
"scripts": {
|
||||
"lint:js": "eslint --max-warnings 0 */src -c ./.eslintrc.cjs",
|
||||
"lint:ts": "tsc --noEmit",
|
||||
"test:playwright": "playwright test",
|
||||
"test:playwright:open": "yarn test:playwright --ui",
|
||||
"test:playwright:screenshots": "playwright-screenshots yarn test:playwright --update-snapshots --grep @screenshot"
|
||||
"test:playwright": "nx test:playwright --",
|
||||
"test:playwright:open": "nx test:playwright -- --ui",
|
||||
"test:playwright:screenshots": "nx test:playwright:screenshots --"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@element-hq/element-web-playwright-common": "workspace:*",
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"test:playwright": {
|
||||
"command": "playwright test",
|
||||
"options": { "cwd": "modules" },
|
||||
"dependsOn": ["^build:playwright"]
|
||||
},
|
||||
"test:playwright:screenshots": {
|
||||
"command": "playwright-screenshots playwright test --update-snapshots --grep @screenshot",
|
||||
"options": { "cwd": "modules" },
|
||||
"dependsOn": ["^build:playwright"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user