repo stringlengths 7 64 | file_url stringlengths 81 338 | file_path stringlengths 5 257 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:25:31 2026-01-05 01:50:38 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/fetch-example/fetch-example.component.spec.ts | starters/angular-apollo-tailwind/src/app/fetch-example/fetch-example.component.spec.ts | import { ComponentFixture, TestBed } from '@angular/core/testing';
import {
ApolloTestingModule,
ApolloTestingController,
} from 'apollo-angular/testing';
import { FetchExampleComponent, GET_GREETING } from './fetch-example.component';
describe('FetchExampleComponent', () => {
let component: FetchExampleComponen... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/home/home.component.ts | starters/angular-apollo-tailwind/src/app/home/home.component.ts | import { Component } from '@angular/core';
@Component({
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'],
})
export class HomeComponent {
constructor() {}
}
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/home/home.component.spec.ts | starters/angular-apollo-tailwind/src/app/home/home.component.spec.ts | import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declaratio... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/counter-example/counter-example.component.spec.ts | starters/angular-apollo-tailwind/src/app/counter-example/counter-example.component.spec.ts | import { ComponentFixture, TestBed } from '@angular/core/testing';
import {
ApolloTestingController,
ApolloTestingModule,
} from 'apollo-angular/testing';
import { CounterExampleComponent } from './counter-example.component';
describe('CounterExampleComponent', () => {
let component: CounterExampleComponent;
... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/counter-example/counter-example.component.ts | starters/angular-apollo-tailwind/src/app/counter-example/counter-example.component.ts | import { Component } from '@angular/core';
import { counterVar } from './cache';
@Component({
selector: 'app-counter-example',
templateUrl: './counter-example.component.html',
styleUrls: ['./counter-example.component.scss'],
})
export class CounterExampleComponent {
get counter() {
return counterVar();
}... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/counter-example/cache.ts | starters/angular-apollo-tailwind/src/app/counter-example/cache.ts | import { InMemoryCache, makeVar } from '@apollo/client/cache';
export const counterVar = makeVar(0);
export const cache = new InMemoryCache({
typePolicies: {
Query: {
fields: {
counter: {
read() {
return counterVar();
},
},
},
},
},
});
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/app/counter-example/counter-example.stories.ts | starters/angular-apollo-tailwind/src/app/counter-example/counter-example.stories.ts | import { Story, Meta, moduleMetadata } from '@storybook/angular';
import { ApolloModule } from 'apollo-angular';
import { CounterExampleComponent } from './counter-example.component';
export default {
title: 'Example/Counter Example',
component: CounterExampleComponent,
decorators: [
moduleMetadata({
... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/environments/environment.ts | starters/angular-apollo-tailwind/src/environments/environment.ts | // This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
};
/*
* For easier debugging in development mode, you... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/angular-apollo-tailwind/src/environments/environment.prod.ts | starters/angular-apollo-tailwind/src/environments/environment.prod.ts | export const environment = {
production: true,
};
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/ts-shim.d.ts | starters/nuxt2-pinia-tailwind/ts-shim.d.ts | declare module '*.vue' {
import Vue from 'vue';
export default Vue;
}
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/store/counterStore.ts | starters/nuxt2-pinia-tailwind/store/counterStore.ts | import { defineStore } from 'pinia';
export interface ICounterRootState {
counter: number;
}
export const useCounterStore = defineStore('counterStore', {
state: (): ICounterRootState => ({
counter: 0,
}),
});
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/test/utils.ts | starters/nuxt2-pinia-tailwind/test/utils.ts | /**
* Choosing to export testing library through a utility file instead to avoid major refactorings and allowing custom configuration.
* Please see: https://testing-library.com/docs/react-testing-library/setup as reference
*/
export * from '@testing-library/vue';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/test/__mocks__/mswServer.ts | starters/nuxt2-pinia-tailwind/test/__mocks__/mswServer.ts | import { setupServer } from 'msw/node';
import { handlers } from './handlers';
export const mswServer = setupServer(...handlers);
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/test/__mocks__/handlers/greeting.ts | starters/nuxt2-pinia-tailwind/test/__mocks__/handlers/greeting.ts | import { rest } from 'msw';
export const greetingMock = rest.get(
'https://api.starter.dev/.netlify/functions/server/hello',
(req, res, ctx) => {
const greeting = req.url.searchParams.get('greeting');
return res(ctx.text(`Hello, ${greeting}`));
}
);
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/test/__mocks__/handlers/index.ts | starters/nuxt2-pinia-tailwind/test/__mocks__/handlers/index.ts | import { greetingMock } from './greeting';
export const handlers = [greetingMock];
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/components/FetchExample/FetchExample.test.ts | starters/nuxt2-pinia-tailwind/components/FetchExample/FetchExample.test.ts | import { rest } from 'msw';
import axios from 'axios';
import FetchExample from './FetchExample.vue';
import { render, screen, waitFor } from '@/test/utils';
import { mswServer } from '~/test/__mocks__/mswServer';
beforeAll(() => mswServer.listen());
afterEach(() => mswServer.resetHandlers());
afterAll(() => mswServer... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/components/FetchExample/FetchExample.stories.ts | starters/nuxt2-pinia-tailwind/components/FetchExample/FetchExample.stories.ts | export default {
title: 'Components',
};
export const FetchExample = () => '<FetchExample />';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/components/CounterExample/CounterExample.test.ts | starters/nuxt2-pinia-tailwind/components/CounterExample/CounterExample.test.ts | import Vue from 'vue';
import { createTestingPinia } from '@pinia/testing';
import { PiniaVuePlugin } from 'pinia';
import CounterExample from './CounterExample.vue';
import { fireEvent, render, screen } from '@/test/utils';
describe('<CounterExample />', () => {
beforeEach(() => {
Vue.use(PiniaVuePlugin);
});... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nuxt2-pinia-tailwind/components/CounterExample/CounterExample.stories.ts | starters/nuxt2-pinia-tailwind/components/CounterExample/CounterExample.stories.ts | export default {
title: 'Components',
};
export const CounterExample = () => '<CounterExample />';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/jest.config.ts | starters/express-apollo-prisma/jest.config.ts | /*
* For a detailed explanation regarding each configuration property and type check, visit:
* https://jestjs.io/docs/configuration
*/
export default {
// All imported modules in your tests should be mocked automatically
// automock: false,
// Stop running tests after `n` failures
// bail: 0,
// The director... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/main.ts | starters/express-apollo-prisma/src/main.ts | import { ApolloServerPluginDrainHttpServer } from '@apollo/server/plugin/drainHttpServer';
import express from 'express';
import http from 'http';
import cors from 'cors';
import bodyParser from 'body-parser';
import { graphqlServer, createGraphqlServerMiddlewareAsync } from './endpoints/graphql';
import * as dotenv fr... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/graphql-server.ts | starters/express-apollo-prisma/src/mocks/graphql-server.ts | import { ExpressMiddlewareOptions } from '@apollo/server/dist/esm/express4';
import { WithRequired } from '@apollo/utils.withrequired';
import { mock, MockProxy } from 'jest-mock-extended';
import { ServerContext } from '../endpoints/graphql/server-context';
import {
ExecuteOperationOptions,
GraphQLRequest,
GraphQLR... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/express.ts | starters/express-apollo-prisma/src/mocks/express.ts | import { Response, Request } from 'express';
import { mock, MockProxy } from 'jest-mock-extended';
export const createMockExpressResponse = (): MockProxy<Response> => {
const mockedResponse = mock<Response>();
mockedResponse.status.mockImplementation(() => mockedResponse);
return mockedResponse;
};
export const cr... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/cache-api-wrapper.ts | starters/express-apollo-prisma/src/mocks/cache-api-wrapper.ts | import { mock, MockProxy } from 'jest-mock-extended';
import { CacheAPIWrapper } from '../lib/cache';
export const createMockCacheApiWrapper = <
TEntity extends { [k: string]: number | string | null },
TUniqueKey extends keyof TEntity = 'id'
>(): MockProxy<CacheAPIWrapper<TEntity, TUniqueKey>> =>
mock<CacheAPIWrapp... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/technology-entity.ts | starters/express-apollo-prisma/src/mocks/technology-entity.ts | import { TechnologyEntity } from '@prisma/client';
import { DeepMockProxy, mockDeep } from 'jest-mock-extended';
import {
TechnologyDataSource,
TechnologyEntityCollectionPage,
} from '../endpoints/graphql/data-sources';
export const createMockTechnologyDataSource = (): DeepMockProxy<TechnologyDataSource> =>
mockDee... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/prisma-client.ts | starters/express-apollo-prisma/src/mocks/prisma-client.ts | import { PrismaClient } from '@prisma/client';
import { DeepMockProxy, mockDeep } from 'jest-mock-extended';
export const createMockPrismaClient = (): DeepMockProxy<PrismaClient> => mockDeep<PrismaClient>();
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/technology.ts | starters/express-apollo-prisma/src/mocks/technology.ts | import { Technology } from '../endpoints/graphql/schema/generated/types';
let technologyIdCount = 0;
export const createMockTechnology = (): Technology => {
const id = `MOCK_ID_${technologyIdCount++}`;
return {
description: `MOCK_DESCRIPTION_${id}`,
displayName: `MOCK_DISPLAY_NAME_${id}`,
id,
url: `MOCK_URL_... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/amqplib.ts | starters/express-apollo-prisma/src/mocks/amqplib.ts | import { Channel, Connection } from 'amqplib';
import { mockDeep, DeepMockProxy } from 'jest-mock-extended';
export const createMockConnection = (): DeepMockProxy<Connection> => mockDeep<Connection>();
export const createMockChannel = (): DeepMockProxy<Channel> => mockDeep<Channel>();
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/mocks/redis-client.ts | starters/express-apollo-prisma/src/mocks/redis-client.ts | import { DeepMockProxy, mockDeep } from 'jest-mock-extended';
import { RedisClient } from '../lib/cache/redis';
export const createMockRedisClient = (): DeepMockProxy<RedisClient> => mockDeep<RedisClient>();
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/datasource.spec.ts | starters/express-apollo-prisma/src/endpoints/health/datasource.spec.ts | import { createMockPrismaClient } from '../../mocks/prisma-client';
import { getDataSourceHealth } from './datasource';
describe('.getDataSourceHealth', () => {
describe('when called without prismaCleint', () => {
let result: boolean;
beforeAll(async () => {
result = await getDataSourceHealth();
});
it('... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/datasource.ts | starters/express-apollo-prisma/src/endpoints/health/datasource.ts | import { PrismaClient, Prisma } from '@prisma/client';
export const getDataSourceHealth = async (prismaClient?: PrismaClient) => {
try {
const prismaClientPingResult = await prismaClient?.$queryRaw<[{ 1: bigint }]>(
Prisma.sql(['SELECT 1'])
);
return Number(prismaClientPingResult?.[0][1]) === 1;
} catch {
... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/redis.ts | starters/express-apollo-prisma/src/endpoints/health/redis.ts | import { RedisClient } from '../../lib/cache/redis';
export const getRedisHealth = async (redisClient?: RedisClient) => {
try {
const redisClientPingResult = await redisClient?.ping();
return redisClientPingResult === 'PONG';
} catch {
return false;
}
};
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/handler.spec.ts | starters/express-apollo-prisma/src/endpoints/health/handler.spec.ts | import { createHealthcheckHandler, CreateHealthcheckHandlerOptions } from './handler';
import { getDataSourceHealth } from './datasource';
import { getRedisHealth } from './redis';
import { HealthCheckResult } from './healthcheck-result';
import { createMockPrismaClient } from '../../mocks/prisma-client';
import { crea... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/handler.ts | starters/express-apollo-prisma/src/endpoints/health/handler.ts | import { Request, RequestHandler, Response } from 'express';
import { RedisClient } from '../../lib/cache/redis';
import { HealthCheckResult } from './healthcheck-result';
import { PrismaClient } from '@prisma/client';
import { getRedisHealth } from './redis';
import { getDataSourceHealth } from './datasource';
export... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/index.ts | starters/express-apollo-prisma/src/endpoints/health/index.ts | export * from './handler';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/redis.spec.ts | starters/express-apollo-prisma/src/endpoints/health/redis.spec.ts | import { createMockRedisClient } from '../../mocks/redis-client';
import { getRedisHealth } from './redis';
describe('.getRedisHealth', () => {
describe('when called without redisClient', () => {
let result: boolean;
beforeAll(async () => {
result = await getRedisHealth();
});
it('returns expected result... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/health/healthcheck-result.d.ts | starters/express-apollo-prisma/src/endpoints/health/healthcheck-result.d.ts | export type HealthCheckResult = {
cacheDatabase: boolean;
dataSource: boolean;
};
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/graphql-server.ts | starters/express-apollo-prisma/src/endpoints/graphql/graphql-server.ts | import { ApolloServer } from '@apollo/server';
import { expressMiddleware } from '@apollo/server/express4';
import { RequestHandler } from 'express';
import { schema } from './schema';
import { ServerContext } from './server-context';
import { createServerContextMiddlewareOptionsAsync } from './server-context/server-co... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/graphql-server.spec.ts | starters/express-apollo-prisma/src/endpoints/graphql/graphql-server.spec.ts | import { ApolloServer } from '@apollo/server';
import { RequestHandler } from 'express';
import { graphqlServer, createGraphqlServerMiddlewareAsync } from './graphql-server';
import { createServerContextMiddlewareOptionsAsync } from './server-context/server-context-middleware-options';
import { expressMiddleware } from... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/index.ts | starters/express-apollo-prisma/src/endpoints/graphql/index.ts | export * from './graphql-server';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/mappers/technology.ts | starters/express-apollo-prisma/src/endpoints/graphql/mappers/technology.ts | import { TechnologyEntity } from '@prisma/client';
import { TechnologyEntityCollectionPage } from '../data-sources';
import { Technology, TechnologyCollectionPage } from '../schema/generated/types';
export const mapTechnology = (entity: TechnologyEntity): Technology => ({
__typename: 'Technology',
id: String(entity.... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/mappers/index.ts | starters/express-apollo-prisma/src/endpoints/graphql/mappers/index.ts | export * from './technology';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/mappers/technology.spec.ts | starters/express-apollo-prisma/src/endpoints/graphql/mappers/technology.spec.ts | import { mapTechnology, mapTechnologyCollectionPage } from './technology';
import { TechnologyEntity } from '@prisma/client';
import { Technology, TechnologyCollectionPage } from '../schema/generated/types';
import { createMockTechnologyEntityCollectionPage } from '../../../mocks/technology-entity';
import { createMock... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/data-sources/technology-data-source.spec.ts | starters/express-apollo-prisma/src/endpoints/graphql/data-sources/technology-data-source.spec.ts | import { TechnologyDataSource, TechnologyEntityCollectionPage } from './technology-data-source';
import { PrismaClient, TechnologyEntity } from '@prisma/client';
import { DeepMockProxy } from 'jest-mock-extended';
import { createMockPrismaClient } from '../../../mocks/prisma-client';
import { createMockCacheApiWrapper ... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/data-sources/index.ts | starters/express-apollo-prisma/src/endpoints/graphql/data-sources/index.ts | export * from './technology-data-source';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/data-sources/technology-data-source.ts | starters/express-apollo-prisma/src/endpoints/graphql/data-sources/technology-data-source.ts | import { PrismaClient, Prisma, TechnologyEntity } from '@prisma/client';
import { CacheAPIWrapper } from '../../../lib/cache';
type TechnologyEntityId = TechnologyEntity['id'];
export type TechnologyEntityCollectionPage = {
totalCount: number;
items: TechnologyEntity[];
};
export class TechnologyDataSource {
cons... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/schema/index.ts | starters/express-apollo-prisma/src/endpoints/graphql/schema/index.ts | import { mergeResolvers, mergeTypeDefs } from '@graphql-tools/merge';
import { makeExecutableSchema } from '@graphql-tools/schema';
import { GraphQLSchema } from 'graphql';
import { technologyResolvers, technologyTypeDefs } from './technology';
const typeDefs = mergeTypeDefs([technologyTypeDefs]);
const resolvers = ... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/technology.resolvers.ts | starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/technology.resolvers.ts | import { ServerContext } from '../../server-context/server-context';
import { Resolvers, UpdateTechnology } from '../generated/types';
import { ApolloServerErrorCode } from '@apollo/server/errors';
import { GraphQLError } from 'graphql';
import { mapTechnology, mapTechnologyCollectionPage } from '../../mappers';
const... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/technology.typedefs.ts | starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/technology.typedefs.ts | import gql from 'graphql-tag';
export const technologyTypeDefs = gql`
"""
Technology object
"""
type Technology {
"The ID of the Technology"
id: ID!
"The name of the Technology"
displayName: String!
"A brief description of the Technology"
description: String
"The link to the Technology's documentatio... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/technology.resolvers.spec.ts | starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/technology.resolvers.spec.ts | import gql from 'graphql-tag';
import {
Query,
Mutation,
Technology,
CreateTechnology,
UpdateTechnology,
QuerytechnologiesArgs,
TechnologyCollectionPage,
} from '../generated/types';
import assert from 'assert';
import { testServerExecuteOperation } from '../../../../mocks/graphql-server';
import {
createMockTe... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/index.ts | starters/express-apollo-prisma/src/endpoints/graphql/schema/technology/index.ts | export { technologyTypeDefs } from './technology.typedefs';
export { technologyResolvers } from './technology.resolvers';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/schema/generated/types/index.ts | starters/express-apollo-prisma/src/endpoints/graphql/schema/generated/types/index.ts | import { GraphQLResolveInfo } from 'graphql';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMay... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/server-context/server-context-middleware-options.spec.ts | starters/express-apollo-prisma/src/endpoints/graphql/server-context/server-context-middleware-options.spec.ts | import { createCacheAPIWrapperAsync } from '../../../lib/cache';
import { PrismaClient } from '@prisma/client';
import { TechnologyDataSource } from '../data-sources';
import { createMockCacheApiWrapper } from '../../../mocks/cache-api-wrapper';
import { createMockPrismaClient } from '../../../mocks/prisma-client';
imp... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/server-context/server-context.d.ts | starters/express-apollo-prisma/src/endpoints/graphql/server-context/server-context.d.ts | import { BaseContext } from '@apollo/server';
import { TechnologyDataSource } from '../data-sources/technology-data-source';
export type ServerContextDataSources = {
technologyDataSource: TechnologyDataSource;
};
export type ServerContext = BaseContext & {
// custom context properties
dataSources: ServerContextDat... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/server-context/index.ts | starters/express-apollo-prisma/src/endpoints/graphql/server-context/index.ts | export * from './server-context';
export * from './server-context-middleware-options';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/graphql/server-context/server-context-middleware-options.ts | starters/express-apollo-prisma/src/endpoints/graphql/server-context/server-context-middleware-options.ts | import { ServerContext } from './server-context';
import { ExpressMiddlewareOptions } from '@apollo/server/express4';
import { WithRequired } from '@apollo/utils.withrequired';
import { TechnologyDataSource } from '../data-sources';
import { PrismaClient, TechnologyEntity } from '@prisma/client';
import { createCacheAP... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/job-generator/job-generator-handler.spec.ts | starters/express-apollo-prisma/src/endpoints/job-generator/job-generator-handler.spec.ts | import { createMockExpressRequest, createMockExpressResponse } from '../../mocks/express';
import { generateJob } from './job-generator';
import {
DEFAULT_JOB_MESSAGE,
jobGeneratorHandler,
JobGeneratorHandlerRequestBody,
} from './job-generator-handler';
jest.mock('./job-generator', () => ({
generateJob: jest.fn()... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/job-generator/job-generator-handler.ts | starters/express-apollo-prisma/src/endpoints/job-generator/job-generator-handler.ts | import { RequestHandler } from 'express';
import { ParamsDictionary } from 'express-serve-static-core';
import { generateJob } from './job-generator';
export type JobGeneratorHandlerRequestBody =
| {
message?: string;
}
| undefined;
export const DEFAULT_JOB_MESSAGE = 'Job sample message';
export const jobGen... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/job-generator/job-generator.ts | starters/express-apollo-prisma/src/endpoints/job-generator/job-generator.ts | import { Connection, Channel, connect } from 'amqplib';
export const generateJob = async (message: string): Promise<boolean> => {
let success: boolean;
const AMQP_URL = process.env.AMQP_URL;
if (!AMQP_URL) {
throw new Error('[Invalid environment] Variable not found: AMQP_URL');
}
const AMQP_QUEUE_JOB = process... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/job-generator/job-generator.spec.ts | starters/express-apollo-prisma/src/endpoints/job-generator/job-generator.spec.ts | import { connect, Replies } from 'amqplib';
import { createMockChannel, createMockConnection } from '../../mocks/amqplib';
import { generateJob } from './job-generator';
const MOCK_MESSAGE = 'MOCK_MESSAGE';
const MOCK_ENV_AMQP_URL = 'MOCK_AMQP_URL';
const MOCK_ENV_AMQP_QUEUE_JOB = 'MOCK_ENV_AMQP_QUEUE_JOB';
const MOC... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/endpoints/job-generator/worker.ts | starters/express-apollo-prisma/src/endpoints/job-generator/worker.ts | import amqplib from 'amqplib';
import * as dotenv from 'dotenv';
dotenv.config();
(async () => {
const AMQP_URL = process.env.AMQP_URL;
if (!AMQP_URL) {
throw new Error(`[Invalid environment] Variable not found: AMQP_URL`);
}
const AMQP_QUEUE_JOB = process.env.AMQP_QUEUE_JOB;
if (!AMQP_QUEUE_JOB) {
throw ne... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/redis-cache-api-wrapper.spec.ts | starters/express-apollo-prisma/src/lib/cache/redis-cache-api-wrapper.spec.ts | import { createMockRedisClient } from '../../mocks/redis-client';
import { RedisCacheAPIWrapper } from './redis-cache-api-wrapper';
const MOCK_REDIS_CLIENT = createMockRedisClient();
type MockEntityType = {
mockUniqueKey: number;
mockKey: string;
};
const MOCK_ENTITY_UNIQUE_KEY = 123;
const MOCK_KEY_PREFIX = 'MOCK... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/redis-cache-api-wrapper.ts | starters/express-apollo-prisma/src/lib/cache/redis-cache-api-wrapper.ts | import { CacheAPIWrapper } from './cache-api-wrapper';
import { RedisClient } from './redis/connect-redis-client';
export class RedisCacheAPIWrapper<
TEntity extends { [k: string]: number | string | null },
TUniqueKey extends keyof TEntity = 'id'
> implements CacheAPIWrapper<TEntity, TUniqueKey>
{
constructor(
pr... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/cache-api-wrapper-factory.spec.ts | starters/express-apollo-prisma/src/lib/cache/cache-api-wrapper-factory.spec.ts | import { createMockCacheApiWrapper } from '../../mocks/cache-api-wrapper';
import { createMockRedisClient } from '../../mocks/redis-client';
import { CacheAPIWrapper } from './cache-api-wrapper';
import { createCacheAPIWrapperAsync } from './cache-api-wrapper-factory';
import { connectRedisClient } from './redis';
impo... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/cache-api-wrapper-factory.ts | starters/express-apollo-prisma/src/lib/cache/cache-api-wrapper-factory.ts | import { CacheAPIWrapper } from './cache-api-wrapper';
import { RedisCacheAPIWrapper } from './redis-cache-api-wrapper';
import { connectRedisClient } from './redis/connect-redis-client';
export const createCacheAPIWrapperAsync = async <
TEntity extends { [k: string]: number | string | null },
TUniqueKey extends key... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/index.ts | starters/express-apollo-prisma/src/lib/cache/index.ts | export { CacheAPIWrapper } from './cache-api-wrapper';
export * from './cache-api-wrapper-factory';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/cache-api-wrapper.d.ts | starters/express-apollo-prisma/src/lib/cache/cache-api-wrapper.d.ts | export interface CacheAPIWrapper<
TEntity extends { [k: string]: number | string | null },
TUniqueKey extends keyof TEntity = 'id'
> {
composeRedisKey(uniqueKeyValue: TEntity[TUniqueKey]): string;
getCached(uniqueKeyValue: TEntity[TUniqueKey]): Promise<TEntity | null>;
cache(entity: TEntity, uniqueKey: TUniqueKe... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/redis/connect-redis-client.spec.ts | starters/express-apollo-prisma/src/lib/cache/redis/connect-redis-client.spec.ts | import {
connectRedisClient,
createReconnectStrategy,
RedisClient,
_clearInstances,
onRedisClientError,
onRedisClientReady,
ReconnectStrategy,
} from './connect-redis-client';
import { createClient } from 'redis';
import assert from 'assert';
import { createMockRedisClient } from '../../../mocks/redis-client';
... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/redis/connect-redis-client.ts | starters/express-apollo-prisma/src/lib/cache/redis/connect-redis-client.ts | import { RedisSocketCommonOptions } from '@redis/client/dist/lib/client/socket';
import { RedisFunctions, RedisScripts } from '@redis/client/dist/lib/commands';
import { createClient, RedisClientType, RedisModules } from 'redis';
export type RedisClient = RedisClientType<RedisModules, RedisFunctions, RedisScripts>;
l... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/cache/redis/index.ts | starters/express-apollo-prisma/src/lib/cache/redis/index.ts | export * from './connect-redis-client';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/express-apollo-prisma/src/lib/db/seed.ts | starters/express-apollo-prisma/src/lib/db/seed.ts | import { PrismaClient, Prisma } from '@prisma/client';
import * as dotenv from 'dotenv';
dotenv.config();
const prisma = new PrismaClient();
const RECORDS: Prisma.TechnologyEntityCreateInput[] = [
{
displayName: 'Node.js',
description: 'JavaScript runtime built on Chrome V8 JavaScript engine',
url: 'https://n... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/playwright.config.ts | starters/svelte-kit-scss/playwright.config.ts | import type { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
webServer: {
command: 'npm run build && npm run preview',
port: 4173,
},
testDir: 'tests',
};
export default config;
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/setupTests.ts | starters/svelte-kit-scss/setupTests.ts | /* eslint-disable @typescript-eslint/no-empty-function */
import matchers from '@testing-library/jest-dom/matchers';
import { expect, vi } from 'vitest';
import type { Navigation, Page } from '@sveltejs/kit';
import { readable } from 'svelte/store';
import * as environment from '$app/environment';
import * as navigatio... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/vite.config.ts | starters/svelte-kit-scss/vite.config.ts | import { sveltekit } from '@sveltejs/kit/vite';
import type { UserConfig } from 'vite';
import { configDefaults, type UserConfig as VitestConfig } from 'vitest/config';
const config: UserConfig & { test: VitestConfig['test'] } = {
plugins: [sveltekit()],
define: {
// Eliminate in-source test code
'import.m... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/app.d.ts | starters/svelte-kit-scss/src/app.d.ts | // See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
// and what to do when importing types
declare namespace App {}
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/routes/+page.ts | starters/svelte-kit-scss/src/routes/+page.ts | // since there's no dynamic data here, we can prerender
// it so that it gets served as a static asset in production
export const prerender = true;
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/routes/(examples)/api-example/+page.server.ts | starters/svelte-kit-scss/src/routes/(examples)/api-example/+page.server.ts | import { getGreeting } from '$lib/server';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = async ({ url }) => {
const greeting = url.searchParams.get('greeting');
const message = await getGreeting(greeting ?? 'This Dot Labs!');
return {
message,
};
};
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/routes/(examples)/counter/+page.ts | starters/svelte-kit-scss/src/routes/(examples)/counter/+page.ts | import { dev } from '$app/environment';
// we don't need any JS on this page, though we'll load
// it in dev so that we get hot module replacement
export const csr = dev;
// since there's no dynamic data here, we can prerender
// it so that it gets served as a static asset in production
export const prerender = true;... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/components/Counter/Counter.stories.ts | starters/svelte-kit-scss/src/lib/components/Counter/Counter.stories.ts | import type { Meta, StoryObj } from '@storybook/svelte';
import Counter from './Counter.svelte';
// More on how to set up stories at: https://storybook.js.org/docs/7.0/svelte/writing-stories/introduction
const meta = {
title: 'Example/Counter',
component: Counter,
parameters: {
layout: 'fullscreen',
},
} ... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/components/Counter/Counter.spec.ts | starters/svelte-kit-scss/src/lib/components/Counter/Counter.spec.ts | import Counter from '$lib/components/Counter/Counter.svelte';
import { fireEvent, render, screen } from '@testing-library/svelte';
describe('Counter Component', () => {
beforeEach(async () => {
render(Counter);
const resetButton = screen.getByText('Reset');
await fireEvent.click(resetButton);
});
it... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/components/Greeting/Greeting.stories.ts | starters/svelte-kit-scss/src/lib/components/Greeting/Greeting.stories.ts | import type { Meta, StoryObj } from '@storybook/svelte';
import Greeting from './Greeting.svelte';
// More on how to set up stories at: https://storybook.js.org/docs/7.0/svelte/writing-stories/introduction
const meta = {
title: 'Example/Greeting',
component: Greeting,
parameters: {
layout: 'fullscreen',
}... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/components/Greeting/Greeting.spec.ts | starters/svelte-kit-scss/src/lib/components/Greeting/Greeting.spec.ts | import Greeting from '$lib/components/Greeting/Greeting.svelte';
import { render, screen } from '@testing-library/svelte';
import '@testing-library/jest-dom';
describe('Greeting Component', () => {
test('should show title', () => {
const message = 'from Vitest';
render(Greeting, { message });
const greet... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/stores/index.ts | starters/svelte-kit-scss/src/lib/stores/index.ts | export * from './count';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/stores/count.ts | starters/svelte-kit-scss/src/lib/stores/count.ts | import { writable } from 'svelte/store';
const INITIAL_COUNT = 0;
export const count = writable<number>(INITIAL_COUNT);
export const resetCount = (): void => count.set(INITIAL_COUNT);
export const incrementCount = (): void => count.update((x) => x + 1);
export const decrementCount = (): void => count.update((x) => x ... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/server/greeting.ts | starters/svelte-kit-scss/src/lib/server/greeting.ts | import { error } from '@sveltejs/kit';
export const getGreeting = async (greeting: string) => {
const endpoint = new URL('https://api.starter.dev/.netlify/functions/server/hello');
endpoint.searchParams.append('greeting', greeting);
const response = await fetch(endpoint);
if (!response.ok) {
const resp =... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/src/lib/server/index.ts | starters/svelte-kit-scss/src/lib/server/index.ts | export * from './greeting';
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/svelte-kit-scss/tests/test.ts | starters/svelte-kit-scss/tests/test.ts | import { expect, test } from '@playwright/test';
test('counter page has expected h1', async ({ page }) => {
await page.goto('/counter');
expect(await page.textContent('h1')).toBe('Increment, Decrement and Reset Button Example');
});
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/app.module.ts | starters/nestjs-bullmq-postgresql/src/app.module.ts | import { Module } from '@nestjs/common';
import { SequelizeModule } from '@nestjs/sequelize';
import { BullModule } from '@nestjs/bullmq';
import { Dialect } from 'sequelize';
import { TechnologyModule } from './technology/technology.module';
import { HealthModule } from './health/health.module';
import 'dotenv/config'... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/main.ts | starters/nestjs-bullmq-postgresql/src/main.ts | import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger';
import 'dotenv/config';
(async function bootstrap() {
const config = new DocumentBuilder()
.setTitle('NestJS, Bull MQ and PostgreSQL starter kit API')
.setDescrip... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/technology/technology.controller.ts | starters/nestjs-bullmq-postgresql/src/technology/technology.controller.ts | import { Body, Controller, Delete, Get, Param, Post } from '@nestjs/common';
import { CreateTechnologyDto } from './dto/create-technology.dto';
import { Technology } from './technology.model';
import { TechnologyService } from './technology.service';
import {
ApiCreatedResponse,
ApiForbiddenResponse,
ApiNotFoundResp... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/technology/technology.service.ts | starters/nestjs-bullmq-postgresql/src/technology/technology.service.ts | import { Injectable } from '@nestjs/common';
import { InjectModel } from '@nestjs/sequelize';
import { Technology } from './technology.model';
import { CreateTechnologyDto } from './dto/create-technology.dto';
@Injectable()
export class TechnologyService {
constructor(
@InjectModel(Technology)
private technologyM... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/technology/technology.controller.spec.ts | starters/nestjs-bullmq-postgresql/src/technology/technology.controller.spec.ts | /* eslint-disable @typescript-eslint/no-empty-function */
import { Test, TestingModule } from '@nestjs/testing';
import { TechnologyController } from './technology.controller';
import { TechnologyService } from './technology.service';
import { CreateTechnologyDto } from './dto/create-technology.dto';
describe('Technol... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/technology/technology.model.ts | starters/nestjs-bullmq-postgresql/src/technology/technology.model.ts | import { Column, Model, Table, DataType, PrimaryKey } from 'sequelize-typescript';
@Table
export class Technology extends Model {
@PrimaryKey
@Column({
type: DataType.UUID,
defaultValue: DataType.UUIDV4,
})
public id;
@Column
displayName: string;
@Column
description: string;
@Column
url: string;
}
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/technology/technology.module.ts | starters/nestjs-bullmq-postgresql/src/technology/technology.module.ts | import { Module } from '@nestjs/common';
import { SequelizeModule } from '@nestjs/sequelize';
import { Technology } from './technology.model';
import { TechnologyController } from './technology.controller';
import { TechnologyService } from './technology.service';
@Module({
imports: [SequelizeModule.forFeature([Techn... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/technology/dto/create-technology.dto.ts | starters/nestjs-bullmq-postgresql/src/technology/dto/create-technology.dto.ts | export class CreateTechnologyDto {
displayName: string;
description: string;
url: string;
}
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/health/health.module.ts | starters/nestjs-bullmq-postgresql/src/health/health.module.ts | import { Module } from '@nestjs/common';
import { TerminusModule } from '@nestjs/terminus';
import { HttpModule } from '@nestjs/axios';
import { HealthController } from './health.controller';
@Module({
imports: [TerminusModule, HttpModule],
controllers: [HealthController],
})
export class HealthModule {}
| typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/health/health.controller.ts | starters/nestjs-bullmq-postgresql/src/health/health.controller.ts | import { Controller, Get } from '@nestjs/common';
import { HealthCheckService, HealthCheck, SequelizeHealthIndicator } from '@nestjs/terminus';
@Controller('health')
export class HealthController {
constructor(private health: HealthCheckService, private db: SequelizeHealthIndicator) {}
@Get()
@HealthCheck()
check... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/nestjs-bullmq-postgresql/src/queue/queue.processor.ts | starters/nestjs-bullmq-postgresql/src/queue/queue.processor.ts | import { OnWorkerEvent, Processor, WorkerHost } from '@nestjs/bullmq';
import { Job } from 'bullmq';
@Processor('queue')
class QueueProcessor extends WorkerHost {
async process(job: Job<any, any, string>): Promise<any> {
console.log(`Processing job ${job}`);
}
@OnWorkerEvent('completed')
onCompleted() {
conso... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-apollo-quasar/src/quasar.d.ts | starters/vue3-apollo-quasar/src/quasar.d.ts | /* eslint-disable */
// Forces TS to apply `@quasar/app-vite` augmentations of `quasar` package
// Removing this would break `quasar/wrappers` imports as those typings are declared
// into `@quasar/app-vite`
// As a side effect, since `@quasar/app-vite` reference `quasar` to augment it,
// this declaration also appl... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
thisdot/starter.dev | https://github.com/thisdot/starter.dev/blob/593639aa39999fcb7e8f4cab65c6f768fd4a3a09/starters/vue3-apollo-quasar/src/shims-vue.d.ts | starters/vue3-apollo-quasar/src/shims-vue.d.ts | /* eslint-disable */
/// <reference types="vite/client" />
/// <reference types="vue/ref-macros" />
// Mocks all files ending in `.vue` showing them as plain Vue instances
declare module '*.vue' {
import type { DefineComponent } from 'vue';
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescri... | typescript | MIT | 593639aa39999fcb7e8f4cab65c6f768fd4a3a09 | 2026-01-05T04:59:58.752174Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.