diff --git a/.github/workflows/eslint_flow_jest.yml b/.github/workflows/eslint_flow_jest.yml --- a/.github/workflows/eslint_flow_jest.yml +++ b/.github/workflows/eslint_flow_jest.yml @@ -62,3 +62,7 @@ - name: '[keyserver] test' working-directory: ./keyserver run: yarn test + + - name: '[web] test' + working-directory: ./web + run: yarn test diff --git a/.lintstagedrc.js b/.lintstagedrc.js --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -27,6 +27,9 @@ '{web,lib}/**/*.js': function webFlow(files) { return 'yarn workspace web flow --quiet'; }, + 'web/**/*.js': function webTest(files) { + return 'yarn workspace web test'; + }, '{native,lib}/**/*.js': function nativeFlow(files) { return 'yarn workspace native flow --quiet'; }, diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "arcpatch": "git pull --all --tags && arc patch", "postinstall": "bash ./postinstall.sh", "flow-all": "yarn workspace lib flow && yarn workspace web flow && yarn workspace landing flow && yarn workspace native flow && yarn workspace keyserver flow && yarn workspace desktop flow && yarn workspace electron-update-server flow", - "jest-all": "yarn workspace lib test && yarn workspace keyserver test" + "jest-all": "yarn workspace lib test && yarn workspace keyserver test && yarn workspace web test" }, "devDependencies": { "babel-eslint": "^10.1.0",