Add workspace command to run all tests

This commit is contained in:
Lauren Tan
2023-06-06 10:56:20 -04:00
parent cd56c55e87
commit 5c1faa901e
5 changed files with 9 additions and 4 deletions
+1
View File
@@ -13,6 +13,7 @@
"next": "yarn workspace playground run dev",
"build": "yarn workspaces run build",
"dev": "concurrently --kill-others \"yarn workspace babel-plugin-react-forget run tsc --watch\" \"yarn workspace playground run dev\"",
"test": "yarn workspaces run test",
"snap": "yarn workspace babel-plugin-react-forget run snap",
"snap:build": "yarn workspace snap run build"
},
@@ -11,7 +11,8 @@
"build": "rimraf dist && tsc",
"bundle:meta": "scripts/bundle-meta.sh",
"hash": "scripts/hash-dist.sh",
"test": "tsc && jest",
"test": "yarn jest && yarn snap:build && yarn snap",
"jest": "tsc && jest",
"snap": "node ../snap/dist/main.js",
"snap:build": "yarn workspace snap run build",
"ts:analyze-trace": "scripts/ts-analyze-trace.sh",
@@ -4,7 +4,8 @@
"private": true,
"main": "dist/main.js",
"scripts": {
"build": "webpack --mode=development"
"build": "webpack --mode=development",
"test": ":"
},
"dependencies": {
"eslint": "^8.25.0",
@@ -7,7 +7,8 @@
"build": "next build && node ./scripts/downloadFonts.js",
"vercel-build": "yarn workspaces run build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"test": "yarn lint"
},
"dependencies": {
"@babel/core": "^7.19.1",
@@ -8,6 +8,7 @@
"index.js"
],
"scripts": {
"build": ":"
"build": ":",
"test": ":"
}
}