@@ -96,7 +96,7 @@ export const RedirectionPage: React.FC = () => {
}
return
-
+
diff --git a/inji-web/src/setupTests.ts b/inji-web/src/setupTests.ts
new file mode 100644
index 0000000..8f2609b
--- /dev/null
+++ b/inji-web/src/setupTests.ts
@@ -0,0 +1,5 @@
+// jest-dom adds custom jest matchers for asserting on DOM nodes.
+// allows you to do things like:
+// expect(element).toHaveTextContent(/react/i)
+// learn more: https://github.com/testing-library/jest-dom
+import '@testing-library/jest-dom';
diff --git a/inji-web/src/types/components.d.ts b/inji-web/src/types/components.d.ts
index 5544273..662a3f4 100644
--- a/inji-web/src/types/components.d.ts
+++ b/inji-web/src/types/components.d.ts
@@ -12,7 +12,7 @@ export type ItemBoxProps = {
export type NavBarProps = {
title: string;
search: boolean;
- fetchRequest?: (...arg: any) => ResponseTypeObject;
+ fetchRequest?: any;
}
export type CredentialProps = {
credential: CredentialWellknownObject;
@@ -43,7 +43,8 @@ export type HeaderTileProps = {
content: string;
}
export type SearchIssuerProps = {
- fetchRequest: (...arg: any) => ResponseTypeObject
+ state: RequestStatus;
+ fetchRequest: any
}
export type IssuersListProps = {
state: RequestStatus;
diff --git a/inji-web/tsconfig.json b/inji-web/tsconfig.json
index 7d649ef..a273b0c 100644
--- a/inji-web/tsconfig.json
+++ b/inji-web/tsconfig.json
@@ -7,14 +7,18 @@
"esnext"
],
"allowJs": true,
- "checkJs": false,
- "jsx": "react",
- "tsx": "react",
+ "skipLibCheck": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
"strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noFallthroughCasesInSwitch": true,
+ "module": "esnext",
+ "moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
- "allowSyntheticDefaultImports": true
+ "jsx": "react-jsx"
},
"include": [
"src"