Skip to content

Instantly share code, notes, and snippets.

View longfellowone's full-sized avatar

Matt Wright longfellowone

  • Vancouver, Canada
View GitHub Profile
mod common;
#[cfg(test)]
mod tests {
use crate::common::{TestApp, Vars};
use async_graphql::ID;
use gql_client::Client;
use serde_json::Value;
use server::error::AppError;
use server::http::project::resolver::Project;
@longfellowone
longfellowone / .rs
Last active February 21, 2022 18:59
use async_graphql::ID;
use serde::Serialize;
use server::config::{Configuration, Http, Postgres};
use server::http::App;
use sqlx::{Executor, PgPool};
use uuid::Uuid;
pub struct TestApp {
pub addr: String,
pub pool: PgPool,
// _app.tsx
import "../styles/globals.css";
import type { AppProps } from "next/app";
import { useEffect } from "react";
import * as Fathom from "fathom-client";
import { useRouter } from "next/router";
function MyApp({ Component, pageProps }: AppProps) {
const router = useRouter();