Skip to content

Commit

Permalink
Merge branch 'main' into task/WG-238-panel-assets-listing
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranklin committed Oct 30, 2024
2 parents 3d121ce + 2769968 commit fba6261
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 35 deletions.
4 changes: 4 additions & 0 deletions react/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ dist-ssr
*.sln
*.sw?

# Building artifacts from core-components
# (to be removed in https://tacc-main.atlassian.net/browse/WI-208)
.nx

# Environment
.env
secret_local.ts
21 changes: 19 additions & 2 deletions react/jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,25 @@ module.exports = {
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
// collectCoverageFrom: undefined,

collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
// Exclude test files
'!src/**/*.test.{js,jsx,ts,tsx}',
'!src/**/*.spec.{js,jsx,ts,tsx}',
// Exclude test utilities
'!src/test/**/*',
'!src/testUtil.ts',
'!src/__fixtures__/**/*',
// Exclude secrets and other files
'!src/secret_local*ts',
'!src/types/react*.ts',
// Exclude build/dist directories
'!dist/**/*',
'!build/**/*',
'!src/vite-env*',
// Exclude node_modules
'!**/node_modules/**',
],
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',

Expand Down
4 changes: 2 additions & 2 deletions react/src/pages/MainMenu/MainMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import useAuthenticatedUser from '@hazmapper/hooks/user/useAuthenticatedUser';
import { SystemSelect } from '@hazmapper/components/Systems';
import { ProjectListing } from '@hazmapper/components/Projects/ProjectListing';

function MainMenu() {
const MainMenu = () => {
const {
data: userData,
isLoading: isUserLoading,
Expand Down Expand Up @@ -50,6 +50,6 @@ function MainMenu() {
<SystemSelect onSystemSelect={handleSelectChange}></SystemSelect>
</>
);
}
};

export default MainMenu;
25 changes: 0 additions & 25 deletions react/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
/// <reference types="vite/client" />

interface Env {
designSafeUrl: string;
backend: string;
geoapiUrl: string;
designsafePortalUrl: string;
clientId: string;
host: string;
baseHref: string;
jwt: string;
mapillaryAuthUrl: string;
mapillaryTokenUrl: string;
mapillaryApiUrl: string;
mapillaryTileUrl: string;
mapillaryScope: string;
mapillaryClientSecret: string;
mapillaryClientId: string;
mapillaryClientToken: string;
}

interface ProcessEnv {
env: Env;
}

declare const process: ProcessEnv;
6 changes: 0 additions & 6 deletions react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ export default defineConfig(({ command, mode }) => {
port: 4200,
host: 'localhost',
},
resolve: {
alias: {
'@hazmapper': path.resolve(__dirname, './src'),
'@core-components': path.resolve(__dirname, './src/core-components'),
},
},
resolve: {
alias: {
'@hazmapper': path.resolve(__dirname, './src'),
Expand Down

0 comments on commit fba6261

Please sign in to comment.