From e2e7bc460b6fd5433aa976bb5e26ef720be6bbce Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 10 Nov 2022 09:44:09 -0500 Subject: [PATCH] Fix unit tests on CI not having all deps Signed-off-by: Sebastian Malton --- Makefile | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 73f7b53478..857f14b2cb 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ tag-release: scripts/tag-release.sh $(CMD_ARGS) .PHONY: test -test: binaries/client +test: node_modules binaries/client yarn run jest $(or $(CMD_ARGS), "src") .PHONY: integration @@ -53,7 +53,6 @@ integration: build .PHONY: build build: node_modules binaries/client - yarn run compile:node-fetch $(MAKE) build-extensions -B yarn run build:tray-icons yarn run compile diff --git a/package.json b/package.json index bfe7dc934c..eef071762d 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,13 @@ "debug-build": "concurrently yarn:compile:main yarn:compile:extension-types", "dev-run": "nodemon --watch ./static/build/main.js --exec \"electron --remote-debugging-port=9223 --inspect .\"", "dev:main": "yarn run compile:main --watch --progress", - "predev:renderer": "yarn run compile:node-fetch", "dev:renderer": "yarn run ts-node webpack/dev-server.ts", "compile": "env NODE_ENV=production concurrently yarn:compile:*", "compile:main": "yarn run webpack --config webpack/main.ts", "compile:renderer": "yarn run webpack --config webpack/renderer.ts", "compile:extension-types": "yarn run webpack --config webpack/extensions.ts", "compile:node-fetch": "yarn run webpack --config ./webpack/node-fetch.ts", + "postinstall": "yarn run compile:node-fetch", "npm:fix-package-version": "yarn run ts-node build/set_npm_version.ts", "build:linux": "yarn run compile && electron-builder --linux --dir", "build:mac": "yarn run compile && electron-builder --mac --dir",