dev: add test-dev command for easier testing of packages (#2627)

@si14 you might know a better way to wire this up! lemme know if there's
something more clever here.

### Change Type

- [x] `internal` — Any other changes that don't affect the published
package[^2]

### Release Notes

- Adds easier testing command for individual packages.
pull/2678/head
Mime Čuvalo 2024-01-29 10:29:38 +00:00 zatwierdzone przez GitHub
rodzic d82344bf15
commit 23f60ee98e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
12 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -11,6 +11,7 @@
"scripts": {
"dev": "cross-env NODE_ENV=development wrangler dev --log-level info --persist-to tmp-assets",
"test": "lazy inherit --passWithNoTests",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit --passWithNoTests",
"lint": "yarn run -T tsx ../../scripts/lint.ts"
},

Wyświetl plik

@ -16,6 +16,7 @@
"dev-wrangler": "yarn run -T tsx ./scripts/dev-wrap.ts",
"report-size": "node scripts/report-size.js",
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"lint": "yarn run -T tsx ../../scripts/lint.ts"
},

Wyświetl plik

@ -15,7 +15,8 @@
"build": "yarn run -T tsx scripts/build.ts",
"start": "VITE_PREVIEW=1 yarn run -T tsx scripts/dev-app.ts",
"lint": "yarn run -T tsx ../../scripts/lint.ts",
"test": "lazy inherit"
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch"
},
"dependencies": {
"@radix-ui/react-popover": "^1.0.7",

Wyświetl plik

@ -55,6 +55,7 @@
"check-scripts": "tsx scripts/check-scripts.ts",
"api-check": "lazy api-check",
"test": "lazy test",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy test-coverage && node scripts/offer-coverage.mjs",
"e2e": "lazy e2e --filter='apps/examples'"
},

Wyświetl plik

@ -34,6 +34,7 @@
],
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"benchmark": "yarn run -T tsx ./scripts/benchmark.ts",
"test-coverage": "lazy inherit",
"build": "yarn run -T tsx ../../scripts/build-package.ts",

Wyświetl plik

@ -31,6 +31,7 @@
"files": [],
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"build": "yarn run -T tsx ../../scripts/build-package.ts",
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",

Wyświetl plik

@ -31,6 +31,7 @@
"files": [],
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"build": "yarn run -T tsx ../../scripts/build-package.ts",
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",

Wyświetl plik

@ -29,6 +29,7 @@
"types": "./.tsbuild/index.d.ts",
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"predev": "node ./scripts/copy-css-files.mjs",
"dev": "chokidar '../{editor/editor,tldraw/src/lib/ui}.css' -c 'node ./scripts/copy-css-files.mjs'",

Wyświetl plik

@ -31,6 +31,7 @@
"files": [],
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"index": "node ./scripts/build-index.js && yarn format",
"format": "yarn run -T prettier --write --cache \"src/**/*.{ts,tsx,js,jsx,json,md}\"",

Wyświetl plik

@ -32,6 +32,7 @@
"files": [],
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"lint": "yarn run -T tsx ../../scripts/lint.ts"
},

Wyświetl plik

@ -31,6 +31,7 @@
"files": [],
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"build": "yarn run -T tsx ../../scripts/build-package.ts",
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",

Wyświetl plik

@ -31,6 +31,7 @@
"files": [],
"scripts": {
"test": "lazy inherit",
"test-dev": "yarn run -T jest --watch",
"test-coverage": "lazy inherit",
"build": "yarn run -T tsx ../../scripts/build-package.ts",
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",