root,create-app: switch over to using backstage-cli test in root

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-10-02 16:44:06 +02:00
parent 185fec5c0c
commit e254368371
3 changed files with 14 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
---
'@backstage/create-app': patch
---
Switched the default `test` script in the package root to use `backstage-cli test` rather than `lerna run test`. This is thanks to the `@backstage/cli` now supporting running the test command from the project root.
To apply this change to an existing project, apply the following change to your root `package.json`:
```diff
- "test": "lerna run test --since origin/master -- --coverage",
+ "test": "backstage-cli test",
```
+1 -1
View File
@@ -16,7 +16,7 @@
"tsc:full": "backstage-cli clean && tsc --skipLibCheck false --incremental false",
"clean": "backstage-cli clean && lerna run clean",
"diff": "lerna run diff --",
"test": "lerna run test --since origin/master -- --coverage",
"test": "backstage-cli test",
"test:all": "lerna run test -- --coverage",
"lint": "lerna run lint --since origin/master --",
"lint:docs": "node ./scripts/check-docs-quality",
@@ -15,7 +15,7 @@
"tsc:full": "tsc --skipLibCheck false --incremental false",
"clean": "backstage-cli clean && lerna run clean",
"diff": "lerna run diff --",
"test": "lerna run test --since origin/master -- --coverage",
"test": "backstage-cli test",
"test:all": "lerna run test -- --coverage",
"lint": "lerna run lint --since origin/master --",
"lint:all": "lerna run lint --",