From a9664e7897fa5996935eeb72af618d2a6dbb6e61 Mon Sep 17 00:00:00 2001 From: Sergey Kintsel Date: Mon, 17 Jun 2024 09:46:14 +0100 Subject: [PATCH] TMP --- apps/desktop/jest.config.ts | 2 +- apps/desktop/src/env.ts | 2 +- package.json | 2 +- turbo.json | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/desktop/jest.config.ts b/apps/desktop/jest.config.ts index 6ccdaef784..3845531bef 100644 --- a/apps/desktop/jest.config.ts +++ b/apps/desktop/jest.config.ts @@ -121,7 +121,7 @@ const config: Config = { // projects: undefined, // Use this configuration option to add custom reporters to Jest - reporters: process.env.CI ? ["github-actions"] : ["default", "summary"], + reporters: ["default", "summary"], // Automatically reset mock state before every test resetMocks: true, diff --git a/apps/desktop/src/env.ts b/apps/desktop/src/env.ts index 164e1b4d13..3e92b8513d 100644 --- a/apps/desktop/src/env.ts +++ b/apps/desktop/src/env.ts @@ -1 +1 @@ -export const IS_DEV = import.meta.env.DEV; +export const IS_DEV = !!import.meta.env.DEV; diff --git a/package.json b/package.json index 2cfc232249..f9a356f04a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "test": "turbo test", "lint": "turbo lint", "format": "turbo format", - "ci": "turbo check-types lint:ci format:ci test audit check-circular-deps", + "ci": "turbo check-types lint:ci format:ci test --concurrency=1 audit check-circular-deps", "test:e2e": "turbo test:e2e", "dev:desktop": "turbo dev --filter='./apps/desktop'" }, diff --git a/turbo.json b/turbo.json index fd776da5a6..da50755e2d 100644 --- a/turbo.json +++ b/turbo.json @@ -27,6 +27,9 @@ "test": { "outputs": [ "coverage/**" + ], + "env": [ + "CI" ] }, "test:watch": {