Skip to content

Commit

Permalink
Updating react deps (#502)
Browse files Browse the repository at this point in the history
* Update React

* Revert "Update React"

This reverts commit d09df2f.

* Updating jest environment and babel configuration

* New github config to fix builds

* Cacheing nodegit and fixing failing tests

* update react in package.json

* Updating React-Testing-Library and removing acts (default now)

* adding text encoder, which is not added to jsdom

* fixing error

* updating react testing library dom

* fixing error

* updating react testing library dom

* Update yarn.lock

* Update React

* Revert "Update React"

This reverts commit d09df2f.

* Updating jest environment and babel configuration

* update react in package.json

* adding text encoder, which is not added to jsdom

* in prog

* fixing tests

* fixes

* pushing in changesss

* pages working

* cleaning up confirmAuth + candidateTests + routes index.js

* descendent routing in progress

* fixed candidate tests + test reports. TODO: test queue

* fixing typo: propotypes --> proptypes

* undoing irrelevant commits

* undoing uneccesary whitespaces

* removing unnecessary imports

* in prog

* fixing tests

* pushing in changesss

* pages working

* cleaning up confirmAuth + candidateTests + routes index.js

* descendent routing in progress

* undoing irrelevant commits

* undoing uneccesary whitespaces

* removing unnecessary imports

* Update yarn.lock

* report fixings

* fixing jest test expected

* removing unused import

* updated runtest.yml

* removing resize observer

* confirmed test expected is different per machine, reverting

* fixing resize-observer

* check for null | undefined testplanreports

* summarizetestplanversion reverts

* Re-enabling test on App.test.jsx

* updated testing library

* adding yarn lock

* yarn prettier

* Removing comment

---------

Co-authored-by: Howard Edwards <[email protected]>
Co-authored-by: Erika Miguel <[email protected]>
  • Loading branch information
3 people committed Mar 8, 2023
1 parent f526584 commit 7d2362b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions client/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
// Order matters for the following two imports
Expand Down Expand Up @@ -27,11 +27,12 @@ const client = new ApolloClient({
})
});

ReactDOM.render(
const container = document.getElementById('root');
const root = createRoot(container);
root.render(
<ApolloProvider client={client}>
<BrowserRouter>
<App />
</BrowserRouter>
</ApolloProvider>,
document.getElementById('root')
</ApolloProvider>
);

0 comments on commit 7d2362b

Please sign in to comment.