Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 12, 2026

Modernizes test infrastructure per maintainer request.

Changes

  • Vitest: 2.0.5 → 4.0.16
  • Snapshots: Converted from external files to inline snapshots
    • Changed toMatchSnapshot()toMatchInlineSnapshot() in getRepositoryInfo tests
    • Removed __snapshots__/ directory

The inline snapshots are now embedded directly in the test file:

expect(getRepositoryInfoAdapter('https://github.com/owner/repo/tree/main/src')).toMatchInlineSnapshot(`
  {
    "name": "repo",
    "nameWithOwner": "owner/repo",
    "owner": "owner",
    "path": "tree/main/src",
    "pathParts": [
      "tree",
      "main",
      "src",
    ],
  }
`);

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot AI changed the title [WIP] Add pathParts to getRepositoryInfo Upgrade Vitest to 4.0.16 and convert to inline snapshots Jan 12, 2026
Copilot AI requested a review from fregante January 12, 2026 08:20
@fregante fregante marked this pull request as ready for review January 12, 2026 08:45
@fregante fregante merged commit 27cf3e6 into pathParts Jan 12, 2026
@fregante fregante deleted the copilot/sub-pr-205 branch January 12, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants