From ed8075c12ee5e0505444a25ebed0fd45e8913c1c Mon Sep 17 00:00:00 2001 From: Suvrat1629 Date: Tue, 22 Oct 2024 19:07:03 +0530 Subject: [PATCH] made necessary changes --- __tests__/context/MessagesContext.test.tsx | 1 + __tests__/context/PathsContext.test.tsx | 1 + __tests__/context/StylesContext.test.tsx | 1 + package-lock.json | 1 + package.json | 1 - viteconfig.ts | 6 ------ 6 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 viteconfig.ts diff --git a/__tests__/context/MessagesContext.test.tsx b/__tests__/context/MessagesContext.test.tsx index 37b6ad7e..1c6d7a38 100644 --- a/__tests__/context/MessagesContext.test.tsx +++ b/__tests__/context/MessagesContext.test.tsx @@ -1,4 +1,5 @@ import React from 'react' + import { expect } from '@jest/globals' import { act, render, screen } from '@testing-library/react' import '@testing-library/jest-dom/jest-globals' diff --git a/__tests__/context/PathsContext.test.tsx b/__tests__/context/PathsContext.test.tsx index 269603a1..2000ba2c 100644 --- a/__tests__/context/PathsContext.test.tsx +++ b/__tests__/context/PathsContext.test.tsx @@ -1,4 +1,5 @@ import React from 'react' + import { expect } from '@jest/globals' import { act, render, screen } from '@testing-library/react' import '@testing-library/jest-dom/jest-globals' diff --git a/__tests__/context/StylesContext.test.tsx b/__tests__/context/StylesContext.test.tsx index abae4b5a..e58909dd 100644 --- a/__tests__/context/StylesContext.test.tsx +++ b/__tests__/context/StylesContext.test.tsx @@ -1,4 +1,5 @@ import React from 'react'; + import { render, screen, act } from '@testing-library/react'; import { StylesProvider, useStylesContext } from '../../src/context/StylesContext'; import { DefaultStyles } from "../../src/constants/internal/DefaultStyles"; diff --git a/package-lock.json b/package-lock.json index 71319533..e7eff6cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@types/jest": "^29.5.13", "@types/react": "^18.3.6", "@types/react-dom": "^18.3.0", + "@types/testing-library__react-hooks": "^3.4.1", "@typescript-eslint/eslint-plugin": "^5.60.1", "@vitejs/plugin-react": "^4.0.4", "cypress": "^13.14.2", diff --git a/package.json b/package.json index 53f9f65b..1c182739 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "@types/jest": "^29.5.13", "@types/react": "^18.3.6", "@types/react-dom": "^18.3.0", - "@types/testing-library__react-hooks": "^3.4.1", "@typescript-eslint/eslint-plugin": "^5.60.1", "@vitejs/plugin-react": "^4.0.4", "cypress": "^13.14.2", diff --git a/viteconfig.ts b/viteconfig.ts deleted file mode 100644 index 621db2ce..00000000 --- a/viteconfig.ts +++ /dev/null @@ -1,6 +0,0 @@ -export const viteConfig = { - DEFAULT_URL: import.meta.env?.VITE_THEME_BASE_CDN_URL, - DEFAULT_EXPIRATION: import.meta.env?.VITE_THEME_DEFAULT_CACHE_EXPIRATION, - CACHE_KEY_PREFIX: import.meta.env?.VITE_THEME_CACHE_KEY_PREFIX, - }; - \ No newline at end of file