Skip to content

Instantly share code, notes, and snippets.

View byronferguson's full-sized avatar

Byron Ferguson byronferguson

View GitHub Profile
yarn test --passWithNoTests
shell: /usr/bin/bash -e {0}
yarn run v1.22.10
$ jest --passWithNoTests
PASS src/modules/ticket/ticket.controller.spec.ts (6.959s)
FAIL src/modules/nps-survey/nps-survey.service.spec.ts
● Test suite failed to run
src/modules/nps-survey/nps-survey.service.ts:110:24 - error TS2769: No overload matches this call.
The last overload gave the following error.
@byronferguson
byronferguson / factory.v1.ts
Last active February 20, 2024 08:05
HttpFactory for Repo pattern in Nuxt3
import type { $Fetch } from 'nitropack';
import type { AsyncDataOptions } from 'nuxt/app';
import type { FetchOptions } from 'ofetch';
import { joinURL } from 'ufo';
import { z } from 'zod';
export type { $Fetch };
type Method = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
@byronferguson
byronferguson / printer.cfg
Last active March 6, 2024 00:45
fluidd console dump
17:46:58
// probe at 239.250,194.550 is z=-0.005000
17:46:59
// probe at 239.250,194.550 is z=-0.002500
17:46:59
// Starting manual Z probe. Use TESTZ to adjust position.
// Finish with ACCEPT or ABORT command.
17:46:59
// Z position: ?????? --> 4.998 <-- ??????
18:03:53
<template>
<div>
<label :for="name" class="label">{{ label }}</label>
<input
:id="name"
ref="el"
v-model="input"
type="text"
class="rounded-input"
:required="required"
import { api } from './index';
const PATH = '/v2/auth';
export function login(username: string, password: string) {
return api
.post(`${PATH}/login`, {
username,
password,
type: 'family',