Skip to content

Instantly share code, notes, and snippets.

View glomotion's full-sized avatar
🌱

Tim Paul glomotion

🌱
View GitHub Profile
@glomotion
glomotion / mock-next-router.component.tsx
Created September 22, 2021 00:23
An example mock next router for use in tests (works pre 11.1.x)
/* eslint import/no-extraneous-dependencies: "off" */
import React from 'react';
import { RouterContext } from 'next/dist/next-server/lib/router-context';
import { NextRouter } from 'next/dist/next-server/lib/router/router';
type GenericMethodStub = () => { catch: () => void };
const genericRouterMethodStub: GenericMethodStub = (...props) => {
return { catch: () => {} };
};
@glomotion
glomotion / sublime settings
Last active June 13, 2018 07:18
Sublime 3 settings
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"detect_indentation": true,
"draw_minimap_border": true,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"find_selected_text": true,
"font_face": "Input Mono",