# Snapshot report for `tests/exports.js`

The actual snapshot is saved in `exports.js.snap`.

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

## paths (starting .) should be first

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "unknown": "./unknown.unknown",␊
          "./path-not-really-makes-no-sense": {}␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "./path-not-really-makes-no-sense": {},␊
          "unknown": "./unknown.unknown"␊
        }␊
      }`,
      pretty: true,
    }

## keys that are not paths or 'default' should retain order, including those that start 'types...'

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "unknown-3": "./unknown.unknown3",␊
          "./path-not-really-makes-no-sense": {},␊
          "unknown-1": "./unknown.unknown1",␊
          "default": "./whatever/index.js",␊
          "types": "./types.d.ts",␊
          "unknown-2": "./unknown.unknown2",␊
          "types@<=1": "./v1/types.d.ts"␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "./path-not-really-makes-no-sense": {},␊
          "unknown-3": "./unknown.unknown3",␊
          "unknown-1": "./unknown.unknown1",␊
          "types": "./types.d.ts",␊
          "unknown-2": "./unknown.unknown2",␊
          "types@<=1": "./v1/types.d.ts",␊
          "default": "./whatever/index.js"␊
        }␊
      }`,
      pretty: true,
    }

## 'default' condition should be last

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "unknown": "./unknown.unknown",␊
          "default": "./default.js",␊
          "./path-not-really-makes-no-sense": {}␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "./path-not-really-makes-no-sense": {},␊
          "unknown": "./unknown.unknown",␊
          "default": "./default.js"␊
        }␊
      }`,
      pretty: true,
    }

## paths (starting .) should be first(deep)

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "./deep": {␊
            "unknown": "./unknown.unknown",␊
            "./path-not-really-makes-no-sense": {}␊
          }␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "./deep": {␊
            "./path-not-really-makes-no-sense": {},␊
            "unknown": "./unknown.unknown"␊
          }␊
        }␊
      }`,
      pretty: true,
    }

## keys that are not paths or 'default' should retain order, including those that start 'types...' (deep)

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "./deep": {␊
            "unknown-3": "./unknown.unknown3",␊
            "./path-not-really-makes-no-sense": {},␊
            "unknown-1": "./unknown.unknown1",␊
            "default": "./whatever/index.js",␊
            "types": "./types.d.ts",␊
            "unknown-2": "./unknown.unknown2",␊
            "types@<=1": "./v1/types.d.ts"␊
          }␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "./deep": {␊
            "./path-not-really-makes-no-sense": {},␊
            "unknown-3": "./unknown.unknown3",␊
            "unknown-1": "./unknown.unknown1",␊
            "types": "./types.d.ts",␊
            "unknown-2": "./unknown.unknown2",␊
            "types@<=1": "./v1/types.d.ts",␊
            "default": "./whatever/index.js"␊
          }␊
        }␊
      }`,
      pretty: true,
    }

## 'default' condition should be last(deep)

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "./deep": {␊
            "unknown": "./unknown.unknown",␊
            "default": "./default.js",␊
            "./path-not-really-makes-no-sense": {}␊
          }␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "./deep": {␊
            "./path-not-really-makes-no-sense": {},␊
            "unknown": "./unknown.unknown",␊
            "default": "./default.js"␊
          }␊
        }␊
      }`,
      pretty: true,
    }

## Only 'types'

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "types": "./types.d.ts"␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "types": "./types.d.ts"␊
        }␊
      }`,
      pretty: true,
    }

## Only 'default'

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "default": "./default.js"␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "default": "./default.js"␊
        }␊
      }`,
      pretty: true,
    }

## Well formed

> Should sort `exports` as object.

    {
      input: `{␊
        "exports": {␊
          "types": "./types.d.ts",␊
          "default": "./default.js"␊
        }␊
      }`,
      options: undefined,
      output: `{␊
        "exports": {␊
          "types": "./types.d.ts",␊
          "default": "./default.js"␊
        }␊
      }`,
      pretty: true,
    }
