Add tests to turbo workspace

This commit is contained in:
Joshen Lim committed 2022-10-06 16:17:43 +08:00
1 parent 005eeacff0
commit dda2d9e940
5 files changed
+2500 -1254

No files matched your search

+2 -2
View File
@@ -32,5 +32,5 @@ jobs:
run: npm ci
working-directory: ./
- name: Run tests
run: npm test
working-directory: ./studio
run: npm run test:studio
working-directory: ./
+2489 -1248
View File
File diff suppressed because it is too large. Load diff
+2
View File
@@ -11,6 +11,7 @@
"apps/temp-docs",
"apps/www",
"studio",
"tests",
"packages/*"
],
"scripts": {
@@ -25,6 +26,7 @@
"docker:down": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml down --remove-orphans",
"docker:remove": "cd docker && docker-compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml rm -vfs",
"test": "jest",
"test:studio": "turbo run test --filter=studio",
"perf:kong": "ab -t 5 -c 20 -T application/json http://localhost:8000/",
"perf:meta": "ab -t 5 -c 20 -T application/json http://localhost:5555/tables"
},
+4 -4
View File
@@ -14,7 +14,6 @@
"prettier:write": "prettier --write ."
},
"dependencies": {
"config": "*",
"@headlessui/react": "^1.4.1",
"@monaco-editor/react": "^4.3.1",
"@next/bundle-analyzer": "^12.0.4",
@@ -33,6 +32,8 @@
"analytics-node": "^3.5.0",
"awesome-debounce-promise": "^2.1.0",
"clipboard": "^2.0.8",
"common": "*",
"config": "*",
"configcat-js": "^5.6.0",
"crypto-js": "^4.1.1",
"dayjs": "^1.11.0",
@@ -78,7 +79,6 @@
"sqlstring": "^2.3.2",
"swr": "^1.2.1",
"ui": "*",
"common": "*",
"uniforms-bootstrap4": "^3.6.2",
"uniforms-bridge-json-schema": "^3.6.2",
"uuid": "^8.3.2",
@@ -86,8 +86,6 @@
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"common": "*",
"config": "*",
"@babel/core": "^7.17.5",
"@storybook/addon-actions": "^6.4.19",
"@storybook/addon-essentials": "^6.4.19",
@@ -120,6 +118,8 @@
"@types/zxcvbn": "^4.4.1",
"autoprefixer": "10.4.2",
"babel-loader": "^8.2.3",
"common": "*",
"config": "*",
"jest": "^27.4.0",
"jest-canvas-mock": "^2.3.1",
"postcss": "^8.4.6",
+3
View File
@@ -9,6 +9,9 @@
},
"dev": {
"cache": false
},
"test": {
"cache": false
}
}
}