Skip to content

Instantly share code, notes, and snippets.

View ValentinH's full-sized avatar

Valentin Hervieu ValentinH

View GitHub Profile
// Menu: Meet
// Description: Start new meet and paste on Slack
// Author: Valentin Hervieu
// Twitter: @ValentinHervieu
import "@johnlindquist/kit"
browse('https://meet.new')
let count = 1
let tab = ''
@ValentinH
ValentinH / examples.test.ts
Last active March 11, 2023 21:59
mockGQLResolver is a wrapper around MSW to mock any GQL operations
import { mockGQLResolver } from './mockGQLResolver';
describe('mockGQLResolver demo', () => {
it('mocking a query with a plain object', async () => {
mockGQLResolver({
queries: {
ExampleQueryName: {
users: [
{ id: '1', name: 'John' },
{ id: '2', name: 'Jane' },