Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Additional tests, test all config types#3859

Merged
ntotten merged 1 commit intomainfrom
addional_test
Nov 30, 2025
Merged

Additional tests, test all config types#3859
ntotten merged 1 commit intomainfrom
addional_test

Conversation

@ntotten
Copy link
Member

@ntotten ntotten commented Nov 30, 2025

Additional tests

Copilot AI review requested due to automatic review settings November 30, 2025 17:35
@@ -0,0 +1,3 @@
function foo() {
@@ -0,0 +1,3 @@
function foo() {
@@ -0,0 +1,3 @@
function foo() {
@@ -0,0 +1,3 @@
function foo() {
@@ -0,0 +1,3 @@
function foo() {
@@ -0,0 +1,3 @@
function foo() {
@@ -0,0 +1,6 @@
// Test file for TypeScript config
const example = { foo: "bar", baz: 123, qux: true };
// Test file for TypeScript config
const example = { foo: "bar", baz: 123, qux: true };

function hello(name) {
@ntotten ntotten merged commit e7bc410 into main Nov 30, 2025
11 checks passed
@ntotten ntotten deleted the addional_test branch November 30, 2025 17:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive test coverage for all Prettier configuration file formats and addresses a monorepo plugin resolution issue. The changes consolidate TypeScript config testing under the general config test suite and add test fixtures for numerous config file types that were previously untested.

Key Changes:

  • Expanded test coverage to include all Prettier config formats (.yml, .yaml, .toml, .json5, .mjs, .cjs, .ts, .mts, .cts variants)
  • Added monorepo subfolder plugin resolution test (addressing Prettier issue #18353)
  • Updated bundled Prettier from 3.7.1 to 3.7.3
  • Added sponsors section to README

Reviewed changes

Copilot reviewed 63 out of 69 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/test/suite/config.test.ts Expanded from 10 to 21 config format tests, added comments for each config type, removed trailing spaces and cspell comments
src/test/suite/monorepo-subfolder.test.ts New test file for monorepo subfolder plugin resolution (issue #18353)
src/test/suite/ts-config.test.ts Removed - functionality consolidated into config.test.ts
test-fixtures/config/{various} Added 14 new config type test fixtures (yml, yaml, toml, json5, mjs, cjs, ts variants)
test-fixtures/config/tsconfigfile/ Moved from test-fixtures/ts-config/, updated to use tabWidth: 5 for consistency
test-fixtures/monorepo-subfolder/ New fixture demonstrating monorepo with subfolder having its own Prettier + plugins
test-fixtures/test.code-workspace Replaced "ts-config" with "monorepo-subfolder" and "monorepo-subfolder/subfolder"
package.json Bumped prettier dependency from 3.7.1 to 3.7.3
package-lock.json Updated lockfile for prettier 3.7.3
README.md Added sponsors section with Zuplo sponsorship

Comment on lines +1 to +3
function foo() {
console.log("test")
}
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function foo.

Suggested change
function foo() {
console.log("test")
}

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +3
function foo() {
console.log("test");
}
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function foo.

Suggested change
function foo() {
console.log("test");
}

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,3 @@
function foo() {
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function foo.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,3 @@
function foo() {
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function foo.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,3 @@
function foo() {
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function foo.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,3 @@
function foo() {
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function foo.

Copilot uses AI. Check for mistakes.
@@ -0,0 +1,6 @@
// Test file for TypeScript config
const example = { foo: "bar", baz: 123, qux: true };
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused variable example.

Copilot uses AI. Check for mistakes.
// Test file for TypeScript config
const example = { foo: "bar", baz: 123, qux: true };

function hello(name) {
Copy link

Copilot AI Nov 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused function hello.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants