# Snapshot report for `dist/test.cjs`

The actual snapshot is saved in `test.cjs.snap`.

Generated by [AVA](https://avajs.dev).

## compileFromFile should resolve refs from cwd option

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface Referencing {␊
      foo: ExampleSchema;␊
    }␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## pipe in, pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## pipe in (schema without ID), pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (no flags), pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (--input), pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (-i), pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (-i), unreachable definitions flag, pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface DefinitionsOnly {␊
      [k: string]: unknown;␊
    }␊
    /**␊
     * This interface was referenced by \`DefinitionsOnly\`'s JSON-Schema␊
     * via the \`definition\` "DummyPerson".␊
     */␊
    export interface DummyPerson {␊
      age?: number;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (-i), style flags, pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface Enum {␊
      fstype?: 'ext3' | 'ext4' | 'btrfs'␊
      [k: string]: unknown␊
    }␊
    `

## file in (-i), pipe out (absolute path)

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## pipe in, file out (--output)

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## pipe in, file out (-o)

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (no flags), file out (no flags)

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (-i), file out (-o)

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## file in (--input), file out (--output)

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
      [k: string]: unknown;␊
    }␊
    `

## --unknownAny

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: any[];␊
      likesDogs?: boolean;␊
      [k: string]: any;␊
    }␊
    `

## --additionalProperties

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ExampleSchema {␊
      firstName: string;␊
      lastName: string;␊
      /**␊
       * Age in years␊
       */␊
      age?: number;␊
      height?: number;␊
      favoriteFoods?: unknown[];␊
      likesDogs?: boolean;␊
    }␊
    `

## files in (-i), files out (-o)

> Snapshot 1

    './test/resources/MultiSchema/out/a.d.ts'

> Snapshot 2

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ASchema {␊
      f: string;␊
      g?: number;␊
    }␊
    `

> Snapshot 3

    './test/resources/MultiSchema/out/b.d.ts'

> Snapshot 4

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface BSchema {␊
      x?: string;␊
      y: number;␊
      [k: string]: unknown;␊
    }␊
    `

## files in (-i), pipe out

> Snapshot 1

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ASchema {␊
      f: string;␊
      g?: number;␊
    }␊
    /* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface BSchema {␊
      x?: string;␊
      y: number;␊
      [k: string]: unknown;␊
    }␊
    `

## files in (-i), files out (-o) nested dir does not exist

> Snapshot 1

    './test/resources/MultiSchema/foo/bar/out/a.d.ts'

> Snapshot 2

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ASchema {␊
      f: string;␊
      g?: number;␊
    }␊
    `

> Snapshot 3

    './test/resources/MultiSchema/foo/bar/out/b.d.ts'

> Snapshot 4

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface BSchema {␊
      x?: string;␊
      y: number;␊
      [k: string]: unknown;␊
    }␊
    `

## files in (-i), files out (-o) matching nested dir

> Snapshot 1

    'test/resources/MultiSchema2/out/bar/b.d.ts'

> Snapshot 2

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface BSchema {␊
      x?: string;␊
      y: number;␊
      [k: string]: unknown;␊
    }␊
    `

> Snapshot 3

    'test/resources/MultiSchema2/out/bar/SameDirName/MultiSchema2/e.d.ts'

> Snapshot 4

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export type ESchema = string;␊
    `

> Snapshot 5

    'test/resources/MultiSchema2/out/foo/a.d.ts'

> Snapshot 6

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface ASchema {␊
      f: string;␊
      g?: number;␊
    }␊
    `

> Snapshot 7

    'test/resources/MultiSchema2/out/foobar/c.d.ts'

> Snapshot 8

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface CSchema {␊
      f: string;␊
      g?: number;␊
    }␊
    `

> Snapshot 9

    'test/resources/MultiSchema2/out/foobar/fuzz/d.d.ts'

> Snapshot 10

    `/* eslint-disable */␊
    /**␊
     * This file was automatically generated by json-schema-to-typescript.␊
     * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,␊
     * and run json-schema-to-typescript to regenerate this file.␊
     */␊
    ␊
    export interface DSchema {␊
      f: string;␊
      g?: number;␊
    }␊
    `
