Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing suite to project #13

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.env
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath 'com.android.tools.build:gradle:7.2.2'
classpath 'com.google.gms:google-services:4.3.13'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"lint": "eslint --ext .js,.ts,.jsx,.tsx --ignore-path .eslintignore .",
"format": "eslint --fix --ext .js,.ts,.jsx,.tsx --ignore-path .eslintignore .",
"preview": "vite preview",
"prepare": "husky install"
"prepare": "husky install",
"android": "pnpm build && pnpm exec cap sync && pnpm exec cap run android"
},
"dependencies": {
"@capacitor/android": "^4.1.0",
Expand Down Expand Up @@ -48,7 +49,8 @@
"tailwindcss": "^3.1.8",
"typescript": "^4.8.2",
"vite": "^3.0.7",
"vite-plugin-pages": "^0.25.0"
"vite-plugin-pages": "^0.25.0",
"vitest": "^0.22.1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --fix"
Expand Down
108 changes: 108 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useRoutes, useLocation, useNavigate } from 'react-router-dom';
import routes from '~react-pages';
import { supabase } from './services/supabase-client';

const publicPages = ['/welcome', '/login', '/register', '/email-login'];
const publicPages = ['/welcome', '/login', '/register', '/email-login', '/map'];

export default function App() {
const [session, setSession] = useState(supabase.auth.session());
Expand Down
2 changes: 2 additions & 0 deletions src/pages/welcome.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useEffect } from 'react';
import { useNavigate } from 'react-router';
import Navigation from '../components/navigation';
import { LinkButton } from '../components/button';
import { supabase } from '../services/supabase-client';

Expand Down Expand Up @@ -30,6 +31,7 @@ const Welcome = () => {
I already have an account
</LinkButton>
</div>
<Navigation />
</div>
);
};
Expand Down