From 3ddb32e2c7e1a06656c4433606ba9628dca7bcdf Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 6 Sep 2024 15:36:50 +0700 Subject: [PATCH] test: fix import from components (#3581) --- .github/workflows/jan-electron-linter-and-test.yml | 5 ++++- web/helpers/atoms/HuggingFace.atom.ts | 2 +- .../Thread/ThreadCenterPanel/ChatBody/EmptyModel/index.tsx | 2 +- web/utils/predefinedComponent.ts | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jan-electron-linter-and-test.yml b/.github/workflows/jan-electron-linter-and-test.yml index 529739e24..a151d6497 100644 --- a/.github/workflows/jan-electron-linter-and-test.yml +++ b/.github/workflows/jan-electron-linter-and-test.yml @@ -40,6 +40,7 @@ jobs: base_branch_cov: runs-on: ubuntu-latest + continue-on-error: true steps: - uses: actions/checkout@v3 with: @@ -50,7 +51,9 @@ jobs: node-version: v20.9.0 - name: Install dependencies - run: yarn + run: | + yarn + yarn build:core - name: Run test coverage run: yarn test:coverage diff --git a/web/helpers/atoms/HuggingFace.atom.ts b/web/helpers/atoms/HuggingFace.atom.ts index 514efb186..09f7870a3 100644 --- a/web/helpers/atoms/HuggingFace.atom.ts +++ b/web/helpers/atoms/HuggingFace.atom.ts @@ -1,4 +1,4 @@ -import { HuggingFaceRepoData } from '@janhq/core/.' +import { HuggingFaceRepoData } from '@janhq/core' import { atom } from 'jotai' // modals diff --git a/web/screens/Thread/ThreadCenterPanel/ChatBody/EmptyModel/index.tsx b/web/screens/Thread/ThreadCenterPanel/ChatBody/EmptyModel/index.tsx index 2b179e744..12739b5de 100644 --- a/web/screens/Thread/ThreadCenterPanel/ChatBody/EmptyModel/index.tsx +++ b/web/screens/Thread/ThreadCenterPanel/ChatBody/EmptyModel/index.tsx @@ -2,7 +2,7 @@ import React, { Fragment, useState } from 'react' import Image from 'next/image' -import { InferenceEngine } from '@janhq/core/.' +import { InferenceEngine } from '@janhq/core' import { Button, Input, Progress, ScrollArea } from '@janhq/joi' import { useAtomValue, useSetAtom } from 'jotai' diff --git a/web/utils/predefinedComponent.ts b/web/utils/predefinedComponent.ts index 2d0238bec..82087f43b 100644 --- a/web/utils/predefinedComponent.ts +++ b/web/utils/predefinedComponent.ts @@ -1,4 +1,4 @@ -import { SettingComponentProps } from '@janhq/core/.' +import { SettingComponentProps } from '@janhq/core' export const presetConfiguration: Record = { prompt_template: {