Skip to content

Does Jest repo need .gitattributes file? #8788

@pedrottimark

Description

@pedrottimark

Possible chore

The first solution for #8783 with multiline string copyright and license criterion failed for:

  • packages/expect/src/__tests__/__arbitraries__/sharedSettings.ts
  • packages/expect/src/__tests__/matchers-toContain.property.test.ts
  • packages/expect/src/__tests__/matchers-toContainEqual.property.test.ts
  • packages/expect/src/__tests__/matchers-toEqual.property.test.ts
  • packages/expect/src/__tests__/matchers-toStrictEqual.property.test.ts

because they have CRLF instead of LF for line ending

Nicolas probably assumed that Jest has per-repository settings, but it does not

The only other files that I found in the repo are images or in node_modules subdirectories

For comparison, the React repo has .gitattributes which consists of:

* text=auto

If there is a need in the future for e2e or examples to test behavior on Windows (for examples, snapshot files) then it is possible to add specific exceptions, true?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions