diff --git a/README.md b/README.md index d8896e6..41c64ab 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,8 @@ ![Contributors](https://img.shields.io/github/contributors/vantage-ola/track-now?color=green) ![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/vantage-ola/track-now) ![GitHub License](https://img.shields.io/github/license/vantage-ola/track-now) ![GitHub Tag](https://img.shields.io/github/v/tag/vantage-ola/track-now) -![tracknow api](https://img.shields.io/github/actions/workflow/status/vantage-ola/tracknow/workflow.yml) - +![tracknow worflows](https://img.shields.io/github/actions/workflow/status/vantage-ola/tracknow/workflow.yml) +![tracknow code coverage](https://img.shields.io/codecov/c/github/vantage-ola/tracknow) ## Table Of Contents diff --git a/tracknow/web/src/index.tsx b/tracknow/web/src/index.tsx index 36f9483..d0e19c0 100644 --- a/tracknow/web/src/index.tsx +++ b/tracknow/web/src/index.tsx @@ -1,16 +1,16 @@ import { ColorModeScript } from "@chakra-ui/react" import * as React from "react" -import * as ReactDOM from "react-dom/client" +import { createRoot } from "react-dom/client"; import { App } from "./App" const container = document.getElementById("root") if (!container) throw new Error('Failed to find the root element'); -const root = ReactDOM.createRoot(container) +const root = createRoot(container); root.render( <> {/* remove strict mode for production */} <ColorModeScript /> <App /> </>, -) +); diff --git a/tracknow/web/src/tests/hooks/API.test.ts b/tracknow/web/src/tests/hooks/API.test.ts index b5b3410..6abc9cd 100644 --- a/tracknow/web/src/tests/hooks/API.test.ts +++ b/tracknow/web/src/tests/hooks/API.test.ts @@ -1,5 +1,5 @@ import { jest, describe, beforeEach, it, expect } from '@jest/globals'; -import API, { API_KEY, API_PREFIX_URL } from '../../hooks/API'; +import API from '../../hooks/API'; // Mock fetch globally global.fetch = jest.fn() as unknown as typeof fetch;