Add workspace command to run all tests
Lauren Tan committed
Jun 6, 2023 at 10:56 UTC
5c1faa901effe1bedb617cd588ef19c3bab35f6f
5 files changed
+9
-4
compiler/forget/package.json
+1
@@ -13,6 +13,7 @@
13
"next": "yarn workspace playground run dev",
14
"build": "yarn workspaces run build",
15
"dev": "concurrently --kill-others \"yarn workspace babel-plugin-react-forget run tsc --watch\" \"yarn workspace playground run dev\"",
16
+ "test": "yarn workspaces run test",
17
"snap": "yarn workspace babel-plugin-react-forget run snap",
18
"snap:build": "yarn workspace snap run build"
19
},
compiler/forget/packages/babel-plugin-react-forget/package.json
+2
-1
@@ -11,7 +11,8 @@
11
"build": "rimraf dist && tsc",
12
"bundle:meta": "scripts/bundle-meta.sh",
13
"hash": "scripts/hash-dist.sh",
14
- "test": "tsc && jest",
14
+ "test": "yarn jest && yarn snap:build && yarn snap",
15
+ "jest": "tsc && jest",
16
"snap": "node ../snap/dist/main.js",
17
"snap:build": "yarn workspace snap run build",
18
"ts:analyze-trace": "scripts/ts-analyze-trace.sh",
compiler/forget/packages/eslint-browser/package.json
+2
-1
@@ -4,7 +4,8 @@
4
"private": true,
5
"main": "dist/main.js",
6
"scripts": {
7
- "build": "webpack --mode=development"
7
+ "build": "webpack --mode=development",
8
+ "test": ":"
9
},
10
"dependencies": {
11
"eslint": "^8.25.0",
compiler/forget/packages/playground/package.json
+2
-1
@@ -7,7 +7,8 @@
7
"build": "next build && node ./scripts/downloadFonts.js",
8
"vercel-build": "yarn workspaces run build",
9
"start": "next start",
10
- "lint": "next lint"
10
+ "lint": "next lint",
11
+ "test": "yarn lint"
12
},
13
"dependencies": {
14
"@babel/core": "^7.19.1",
compiler/forget/packages/react-forget-runtime/package.json
+2
-1
@@ -8,6 +8,7 @@
8
"index.js"
9
],
10
"scripts": {
11
- "build": ":"
11
+ "build": ":",
12
+ "test": ":"
13
}
14
}