tldraw/package.json
Steve Ruiz e3cf05f408
Add playwright tests (#1484)
This PR replaces our webdriver end to end tests with playwright tests.

It:
- replaces our webdriver workflow with a new e2e workflow based on
playwright
- removes the webdriver project
- adds e2e tests to our examples app
- replaces all `data-wd` attributes with `data-testid`

### Coverage

Most of the tests from our previous e2e tests are reproduced here,
though there are some related to our gestures that will need to be done
in a different way—or not at all. I've also added a handful of new
tests, too.

### Where are they

The tests are now part of our examples app rather than being in its own
different app. This should help us test our different examples too. As
far as I can tell there are no downsides here in terms of the regular
developer experience, though they might complicate any CodeSandbox
projects that are hooked into the examples app.

### Change Type

- [x] `tests` — Changes to any testing-related code only (will not
publish a new version)
2023-05-30 15:28:56 +01:00

109 lines
3 KiB
JSON

{
"name": "@tldraw/monorepo",
"description": "A tiny little drawing app (monorepo).",
"version": "0.0.0",
"private": true,
"author": {
"name": "tldraw GB Ltd.",
"email": "hello@tldraw.com"
},
"homepage": "https://tldraw.dev",
"repository": {
"type": "git",
"url": "https://github.com/tldraw/tldraw"
},
"bugs": {
"url": "https://github.com/tldraw/tldraw/issues"
},
"keywords": [
"tldraw",
"drawing",
"app",
"development",
"whiteboard",
"canvas",
"infinite"
],
"workspaces": [
"apps/*",
"packages/*",
"apps/vscode/*",
"e2e",
"config",
"scripts"
],
"scripts": {
"clean": "scripts/clean.sh",
"postinstall": "husky install && yarn refresh-assets",
"refresh-assets": "lazy refresh-assets",
"build": "lazy build",
"build-docs": "lazy build --filter='{,bublic/}apps/docs'",
"dev": "lazy run dev --filter='{,bublic/}apps/examples' --filter='{,bublic/}packages/tldraw'",
"dev-docs": "lazy run dev --filter='{,bublic/}apps/docs'",
"dev-vscode": "code ./apps/vscode/extension && lazy run dev --filter='{,bublic/}apps/vscode/{extension,editor}'",
"dev-webdriver": "lazy run dev --filter='{,bublic/}apps/webdriver'",
"build-types": "lazy inherit",
"build-api": "lazy build-api",
"build-package": "lazy build-package",
"lint": "lazy lint",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json}\"",
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
"check-scripts": "tsx scripts/check-scripts.ts",
"api-check": "lazy api-check",
"test": "lazy test",
"e2e": "lazy e2e --filter='{,bublic/}apps/examples'"
},
"engines": {
"npm": ">=7.0.0"
},
"packageManager": "yarn@3.5.0",
"lint-staged": {
"*.{js,jsx,ts,tsx,json}": [
"prettier --write"
]
},
"dependencies": {
"@next/eslint-plugin-next": "^13.3.0",
"@types/jest": "^28.1.2",
"@types/node": "18.7.3",
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/parser": "^5.57.0",
"cross-env": "^7.0.3",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-local": "^1.0.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.0",
"inquirer": "^9.1.4",
"jest": "^28.1.1",
"lint-staged": ">=10",
"open": "^8.4.0",
"prettier": "^2.8.6",
"prettier-plugin-organize-imports": "^3.2.2",
"typescript": "^5.0.2"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.34.1",
"@playwright/test": "^1.34.3",
"@swc/core": "^1.3.55",
"@swc/jest": "^0.2.26",
"@types/glob": "^8.1.0",
"auto": "^10.44.0",
"fs-extra": "^11.1.0",
"json5": "^2.2.3",
"lazyrepo": "0.0.0-alpha.26",
"rimraf": "^4.4.0",
"tree-kill": "^1.2.2",
"tsx": "^3.12.2",
"vercel": "^28.16.15",
"yargs": "^17.7.2"
},
"resolutions": {
"@microsoft/api-extractor@^7.34.1": "patch:@microsoft/api-extractor@npm%3A7.34.1#./.yarn/patches/@microsoft-api-extractor-npm-7.34.1-af268a32f8.patch"
}
}