···1616 * the template on the fly. This reduces runtime by about
1717 * half on large projects.
1818 */
1919-function handlebarsPlugin(): Plugin {
1919+export function handlebarsPlugin(): Plugin {
2020 return {
2121 name: 'handlebars',
2222 resolveId: (file: any, importer: any) => {
···11+import { describe, expect, it } from 'vitest';
22+13import { enumKey } from '../enum';
2435describe('enumKey', () => {
+2
src/utils/__tests__/escapeName.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import { escapeName, unescapeName } from '../escapeName';
2435const data = [
+1
src/utils/__tests__/handlebars.spec.ts
···11import Handlebars from 'handlebars/runtime';
22+import { describe, expect, it } from 'vitest';
2334import { registerHandlebarHelpers, registerHandlebarTemplates } from '../handlebars';
45
+2
src/utils/__tests__/operation.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import { getOperationName } from '../operation';
2435describe('getOperationName', () => {
+2
src/utils/__tests__/sortByName.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import type { Model } from '../../client/interfaces/Model';
24import type { Service } from '../../client/interfaces/Service';
35import { sortByName } from '../sortByName';
+2
src/utils/__tests__/stripNamespace.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import { stripNamespace } from '../stripNamespace';
2435describe('stripNamespace', () => {
+2
src/utils/__tests__/type.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import { getMappedType, getType } from '../type';
2435describe('getMappedType', () => {
+2
src/utils/getPattern.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import { getPattern } from './getPattern';
2435describe('getPattern', () => {
+2
src/utils/isSubdirectory.spec.ts
···11import path from 'node:path';
2233+import { describe, expect, it } from 'vitest';
44+35import { isSubDirectory } from './isSubdirectory';
4657describe('isSubDirectory', () => {
+2
src/utils/sanitizeTypeName.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import sanitizeTypeName from './sanitizeTypeName';
2435describe('sanitizeTypeName', () => {
+2
src/utils/sort.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import { sort } from './sort';
2435describe('sort', () => {
+2
src/utils/unique.spec.ts
···11+import { describe, expect, it } from 'vitest';
22+13import { unique } from './unique';
2435describe('unique', () => {
+3-1
src/utils/write/__tests__/class.spec.ts
···11import { writeFileSync } from 'node:fs';
2233+import { describe, expect, it, vi } from 'vitest';
44+35import { writeClientClass } from '../class';
4655-jest.mock('node:fs');
77+vi.mock('node:fs');
6879describe('writeClientClass', () => {
810 it('should write to filesystem', async () => {
+3-1
src/utils/write/__tests__/client.spec.ts
···11import { mkdirSync, rmSync, writeFileSync } from 'node:fs';
2233+import { describe, expect, it, vi } from 'vitest';
44+35import { writeClient } from '../client';
4655-jest.mock('node:fs');
77+vi.mock('node:fs');
6879describe('writeClient', () => {
810 it('should write to filesystem', async () => {