Skip to content

Commit

Permalink
Run vitest via pnpify
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya committed Sep 30, 2023
1 parent ab6305c commit d28d19b
Show file tree
Hide file tree
Showing 6 changed files with 414 additions and 42 deletions.
7 changes: 4 additions & 3 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"type": "module",
"exports": "./index.js",
"scripts": {
"test": "vitest",
"test": "pnpify vitest",
"start": "vite serve",
"build": "vite build --ssr ./index.ts && node ../scripts/bundle-yarn.js",
"update-schema": "node -r envars/config ../scripts/update-schema.js",
"deploy": "node ../scripts/gcf-deploy.js api --entry=api",
"api:tsc": "tsc",
"api:test": "vitest",
"api:test": "pnpify vitest",
"api:start": "yarn workspace api run start",
"api:update-schema": "yarn workspace api run update-schema",
"api:build": "yarn workspace api run build"
Expand Down Expand Up @@ -64,13 +64,14 @@
"@types/source-map-support": "^0.5.8",
"@types/supertest": "^2.0.13",
"@types/validator": "^13.11.2",
"@yarnpkg/pnpify": "^4.0.0-rc.52",
"envars": "^0.4.0",
"execa": "^8.0.1",
"happy-dom": "^12.2.1",
"knex-types": "^0.5.0",
"supertest": "^6.3.3",
"typescript": "~5.2.2",
"vite": "^4.4.9",
"vite": "~4.4.9",
"vite-plugin-node": "^3.0.2",
"vite-plugin-static-copy": "^0.17.0",
"vitest": "^0.34.6"
Expand Down
5 changes: 3 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"test": "vitest",
"test": "pnpify vitest",
"relay": "relay-compiler",
"start": "vite serve",
"build": "vite build",
Expand Down Expand Up @@ -45,13 +45,14 @@
"@types/relay-compiler": "^14.0.1",
"@types/relay-runtime": "^14.1.14",
"@vitejs/plugin-react": "^4.1.0",
"@yarnpkg/pnpify": "^4.0.0-rc.52",
"babel-plugin-relay": "^15.0.0",
"envars": "^0.4.0",
"happy-dom": "^12.2.1",
"relay-compiler": "^15.0.0",
"relay-config": "^12.0.1",
"typescript": "~5.2.2",
"vite": "^4.4.9",
"vite": "~4.4.9",
"vite-plugin-relay": "^2.0.0",
"vitest": "^0.34.6"
},
Expand Down
8 changes: 4 additions & 4 deletions edge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"private": true,
"type": "module",
"scripts": {
"test": "vitest",
"test": "pnpify vitest",
"build": "vite build",
"coverage": "vitest run --coverage",
"deploy": "node ../scripts/wrangler.js deploy",
"wrangler": "node ../scripts/wrangler.js",
"edge:cf": "node ../scripts/wrangler.js",
"edge:tsc": "tsc",
"edge:test": "vitest",
"edge:test": "pnpify vitest",
"edge:deploy": "node ../scripts/wrangler.js deploy"
},
"dependencies": {
Expand All @@ -26,10 +25,11 @@
"@cloudflare/workers-types": "^4.20230922.0",
"@types/ejs": "^3.1.3",
"@types/node": "^20.8.0",
"@yarnpkg/pnpify": "^4.0.0-rc.52",
"happy-dom": "^12.2.1",
"toml": "^3.0.0",
"typescript": "~5.2.2",
"vite": "^4.4.9",
"vite": "~4.4.9",
"vitest": "^0.34.6",
"vitest-environment-miniflare": "^2.14.1"
}
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"scripts"
],
"scripts": {
"postinstall": "node ./scripts/postinstall.js",
"postinstall": "node ./scripts/post-install.js",
"start": "yarn workspaces foreach -ip -j unlimited run start",
"build": "yarn workspaces foreach -p -j unlimited run build",
"setup": "node ./scripts/setup.js",
"lint": "eslint --cache --report-unused-disable-directives .",
"test": "vitest",
"test": "pnpify vitest",
"tf": "node --no-warnings ./scripts/tf.js",
"g:lint": "yarn lint \"$INIT_CWD\"",
"psql": "yarn db:psql",
Expand All @@ -31,6 +31,7 @@
"@types/node": "^20.8.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
"@yarnpkg/pnpify": "^4.0.0-rc.52",
"envars": "^0.4.0",
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
File renamed without changes.
Loading

0 comments on commit d28d19b

Please sign in to comment.