Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit cae54e8

Browse files
committed
update test script
1 parent 528b99e commit cae54e8

30 files changed

+72
-74
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install packages
2222
run: npm install
2323
- name: Run tests
24-
run: npm run build:main && npm test
24+
run: npm run build && npm test
2525
- name: Build the Electron App
2626
run: npm run package
2727
- name: Build/release Electron app

src/renderer/components/CookbookTable/CookbookTable.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import {
1818
Logos,
1919
} from '@codiga/codiga-components';
2020

21-
import { getCookbookUrl, getGroupUrl } from '../../../renderer/utils/urlUtils';
22-
import { getAvatarUrl } from '../../../renderer/utils/userUtils';
23-
import { AssistantCookbook } from '../../../renderer/types/assistantTypes';
24-
import { PageTypes } from '../../../renderer/types/pageTypes';
25-
import FavoriteCookbook from '../../../renderer/components/Favorite/FavoriteCookbook';
26-
import UserLink from '../../../renderer/components/UserLink';
21+
import { getCookbookUrl, getGroupUrl } from '../../utils/urlUtils';
22+
import { getAvatarUrl } from '../../utils/userUtils';
23+
import { AssistantCookbook } from '../../types/assistantTypes';
24+
import { PageTypes } from '../../types/pageTypes';
25+
import FavoriteCookbook from '../../components/Favorite/FavoriteCookbook';
26+
import UserLink from '../../components/UserLink';
2727
import VotesCurrent from '../VotesCurrent';
2828

2929
const Td = (props: TableCellProps) => (

src/renderer/components/CookbookTable/CookbookTableEmpty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link } from '@chakra-ui/react';
22
import { EmptyState } from '@codiga/codiga-components';
3-
import { APP_URL } from '../../../renderer/lib/config';
3+
import { APP_URL } from '../../lib/config';
44

55
export default function CookbookTableEmpty() {
66
return (

src/renderer/components/CookbookTable/CookbookTableEmptyFiltered.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button, Flex, Link } from '@chakra-ui/react';
22
import { EmptyState } from '@codiga/codiga-components';
3-
import { APP_URL } from '../../../renderer/lib/config';
3+
import { APP_URL } from '../../lib/config';
44
import { useFilters } from '../FiltersContext';
55

66
export default function CookbookTableEmptyFiltereed() {

src/renderer/components/CookbookTable/CookbookTableError.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Link } from '@chakra-ui/react';
22
import { EmptyState } from '@codiga/codiga-components';
3-
import { APP_URL } from '../../../renderer/lib/config';
3+
import { APP_URL } from '../../lib/config';
44

55
export default function CookbookTableError() {
66
return (

src/renderer/components/Favorite/Favorite.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Button, Tooltip } from '@chakra-ui/react';
22
import { HeartFilledIcon, HeartIcon } from '@codiga/codiga-components';
3-
import { useUser } from '../../../renderer/components/UserContext';
3+
import { useUser } from '../../components/UserContext';
44

55
export type FavoriteProps = {
66
isSubscribed?: boolean;

src/renderer/components/Favorite/FavoriteSnippet.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import { useToast } from '@codiga/codiga-components';
33
import {
44
SUBSCRIBE_TO_RECIPE,
55
UNSUBSCRIBE_TO_RECIPE,
6-
} from '../../../renderer/graphql/mutations';
6+
} from '../../graphql/mutations';
77
import {
88
GET_RECIPES_SEMANTICALLY,
99
GET_SHARED_RECIPES,
1010
GET_USER_RECIPES,
1111
GET_USER_SUBSCRIBED_RECIPES,
12-
} from '../../../renderer/graphql/queries';
12+
} from '../../graphql/queries';
1313
import {
1414
GET_SHARED_RECIPES_VARIABLES,
1515
GET_USER_RECIPES_VARIABLES,
1616
GET_USER_SUBSCRIBED_RECIPES_VARIABLES,
17-
} from '../../../renderer/graphql/variables';
17+
} from '../../graphql/variables';
1818
import Favorite, { FavoriteProps } from './Favorite';
1919

2020
type FavoriteRecipeProps = Pick<FavoriteProps, 'isSubscribed'> & {

src/renderer/components/Filters/Filters.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ import {
1717
LanguageSelector,
1818
LibrarySelector,
1919
} from '@codiga/codiga-components';
20-
import { useFilters } from '../../../renderer/components/FiltersContext';
21-
import { ALL_LANGUAGES } from '../../../renderer/lib/constants';
20+
import { useFilters } from '../../components/FiltersContext';
21+
import { ALL_LANGUAGES } from '../../lib/constants';
2222
import {
2323
LanguageEnumeration,
2424
LibraryEnumeration,
25-
} from '../../../renderer/types/assistantTypes';
25+
} from '../../types/assistantTypes';
2626

2727
export default function Filters() {
2828
const { isOpen, onToggle } = useDisclosure();

src/renderer/components/Filters/filterBy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { FilterTypes } from '../../../renderer/components/FiltersContext';
2-
import { Language } from '../../../renderer/lib/constants';
3-
import { AssistantRecipeDependencyConstraint } from '../../../renderer/types/assistantTypes';
1+
import { FilterTypes } from '../../components/FiltersContext';
2+
import { Language } from '../../lib/constants';
3+
import { AssistantRecipeDependencyConstraint } from '../../types/assistantTypes';
44

55
const filterByName = (
66
filters: FilterTypes,

src/renderer/components/FiltersContext/FiltersContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { createContext, useContext, useState, ReactNode } from 'react';
2-
import { Language } from '../../../renderer/lib/constants';
2+
import { Language } from '../../lib/constants';
33
import {
44
LanguageEnumeration,
55
LibraryEnumeration,
6-
} from '../../../renderer/types/assistantTypes';
6+
} from '../../types/assistantTypes';
77

88
export type SearchTermType = string;
99
export type LanguageType = LanguageEnumeration;

0 commit comments

Comments
 (0)