Skip to content

Commit

Permalink
1st release e2e test fix (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelalvaigle committed Dec 6, 2024
1 parent 08f8456 commit ab3e60e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions webapp/e2e/test-environment-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ async function startServer() {
const mongoUri = mongoserver.getUri();
process.env.MONGODB_URI = mongoUri;

userservice = (await import('../../users/userservice/user-service')).default;
authservice = (await import('../../users/authservice/auth-service')).default;
gatewayservice = (await import('../../gatewayservice/gateway-service'))
userservice = (await import('../../users/userservice/user-service.js')).default;
authservice = (await import('../../users/authservice/auth-service.js')).default;
gatewayservice = (await import('../../gatewayservice/gateway-service.js'))
.default;
}

Expand Down
2 changes: 1 addition & 1 deletion webapp/src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import App from './App';
import App from './App.jsx';

test('renders learn react link', () => {
render(<App />);
Expand Down
12 changes: 6 additions & 6 deletions webapp/src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { default as Logo } from './Logo';
export { default as FormRow } from './FormRow';
export { default as BigSidebar } from './BigSidebar';
export { default as SmallSidebar } from './SmallSidebar';
export { default as Navbar } from './Navbar';
export { default as AddQuestionContainer } from './AddQuestionContainer';
export { default as Logo } from './Logo.jsx';
export { default as FormRow } from './FormRow.jsx';
export { default as BigSidebar } from './BigSidebar.jsx';
export { default as SmallSidebar } from './SmallSidebar.jsx';
export { default as Navbar } from './Navbar.jsx';
export { default as AddQuestionContainer } from './AddQuestionContainer.jsx';
2 changes: 1 addition & 1 deletion webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.jsx';
import './index.css';
import reportWebVitals from './reportWebVitals';
import reportWebVitals from './reportWebVitals.js';

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
Expand Down
24 changes: 12 additions & 12 deletions webapp/src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export { default as Landing } from './Landing';
export { default as DashboardLayout } from './DashboardLayout';
export { default as HomeLayout } from './HomeLayout';
export { default as AddUser } from './AddUser';
export { default as Login } from './Login';
export { default as Error } from './Error';
export { default as Play } from './Play';
export { default as Stats } from './Stats';
export { default as Ranking } from './Ranking';
export { default as EditJob } from './EditJob';
export { default as Profile } from './Profile';
export { default as Admin } from './Admin';
export { default as Landing } from './Landing.jsx';
export { default as DashboardLayout } from './DashboardLayout.jsx';
export { default as HomeLayout } from './HomeLayout.jsx';
export { default as AddUser } from './AddUser.jsx';
export { default as Login } from './Login.jsx';
export { default as Error } from './Error.jsx';
export { default as Play } from './Play.jsx';
export { default as Stats } from './Stats.jsx';
export { default as Ranking } from './Ranking.jsx';
export { default as EditJob } from './EditJob.jsx';
export { default as Profile } from './Profile.jsx';
export { default as Admin } from './Admin.jsx';

0 comments on commit ab3e60e

Please sign in to comment.