Hugo's repositories
express-bull-es6
An example setup with docker-compose, Redis, bull queue and ES6.
alpine-test-utils
Utilities for testing Alpine.js components
mock-express-request-response
Mock/stub the Express request/response objects using Jest or sinon
yarn-workspaces-simple-monorepo
Yarn Workspaces basic monorepo management without Lerna for coding examples
jest-mock-date-examples
Different approaches to mocking the Date in Jest tests
jest-ignore-coverage
Examples of how to ignore files/functions/statements for coverage
vue-multiple-components-in-sfc
Examples of writing multiple components in a single .vue file
pocket-newsletter-lambda
Example Lambda to fetch all "newsletter" posts from Pocket.
alpine-server-render
Server-rendering Alpine.js templates.
netlify-lambda-tailwind-static-starter
A starter project with Netlify Lambda, Tailwind CSS and static pages.
pocket-personal-access-token
A lightweight OAuth integration with the Pocket API to generate an access token for your personal account
jest-spy-mock-stub-reference
Jest .fn() and .spyOn() spy/stub/mock assertion reference
micro-analytics-events
A microservice to record analytics events to SQLite3
alpine-inline-babel
Run JavaScript inside of Alpine.js directives through Babel
express-nunjucks-tailwind
A starter project with Express, Nunjucks and TailwindCSS
jest-object-array-partial-match
Jest Array/Object partial match with objectContaining and arrayContaining
alpine-inline-transpile
Transpile inline Alpine.js directive code
jest-set-clear-reset-stub
Set, reset and clear mocks, stubs and spies in Jest
python-graphql-client-example
An example consuming a GraphQL API from Python using gql.
alpine-auto-init
Alpine.js `x-init="init()"` automatically
express-server-render-starter
Starter app for server rendered Express applications using TailwindCSS, Nunjucks and Postgres
jest-specific-argument-assert
Jest assert over single or specific argument/parameters with .toHaveBeenCalledWith and expect.anything()
micro-vs-express-example
An example app using `micro` and `express`
ava-pass-fail-test-missing-env-var
AVA: pass or fail a test if an environment variable is missing
cmd-ctrl-click-vue
Simple Vue command, control, shift, alt + click detection
mongo-query-clause-modification
Real-world recursion: MongoDB nested query clause addition and removal
mock-mongo-object-id
Examples of mocking Mongo ObjectId (test framework agnostic)
run-skip-jest-tests
How to run or skip Jest tests, suites and files