From 76fd1616170e0234d3634935ab48149b8eecc627 Mon Sep 17 00:00:00 2001 From: Niko Virtala Date: Sun, 29 Dec 2024 14:15:35 +0200 Subject: [PATCH] refactor: sort configuration file --- src/index.ts | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/index.ts b/src/index.ts index be97e8f..136e626 100644 --- a/src/index.ts +++ b/src/index.ts @@ -311,25 +311,18 @@ export class Vitest extends Component { private renderTestOptions(): Array { const lines: Array = []; - if (this.include.size > 0) { - lines.push(` include: ${JSON.stringify(Array.from(this.include))},`); - } - - if (this.exclude.size > 0) { - lines.push(` exclude: ${JSON.stringify(Array.from(this.exclude))},`); - } - - lines.push(` isolate: ${this.isolate},`); - lines.push(` pool: "${this.pool}", `); - lines.push(` environment: "${this.environment}",`); - lines.push(` globals: ${this.globals},`); - lines.push(" coverage: {"); lines.push(` enabled: ${this.coverageEnabled},`); lines.push(` provider: "${this.coverageProvider}",`); lines.push(` reporter: ${JSON.stringify(this.coverageReporters)},`); lines.push(` reportsDirectory: "${this.coverageDirectory}",`); lines.push(" },"); + lines.push(` environment: "${this.environment}",`); + lines.push(` exclude: ${JSON.stringify(Array.from(this.exclude))},`); + lines.push(` globals: ${this.globals},`); + lines.push(` include: ${JSON.stringify(Array.from(this.include))},`); + lines.push(` isolate: ${this.isolate},`); + lines.push(` pool: "${this.pool}", `); return lines; }