Răsfoiți Sursa

test(perf): list the bench config among proxy-setup Vitest inventories

scripts/test-proxy-environment.spec.ts pins the Vitest configs that declare
setupFiles so the proxy isolation setup is never dropped; the benchmark
lane declares it too.
Tianyi Cui 3 săptămâni în urmă
părinte
comite
74e27c97d0
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      scripts/test-proxy-environment.spec.ts

+ 2 - 1
scripts/test-proxy-environment.spec.ts

@@ -33,7 +33,8 @@ describe('ambient proxy environment', () => {
   it('finds the configurations that declare a setup at all', () => {
     // Guards the discovery itself: a glob that stopped matching would make every case below vacuous.
     expect(declared.map(entry => entry.config)).toEqual([
-      'vitest.config.ts', 'vitest.e2e.config.ts', 'vitest.expected.config.ts', 'vitest.snapshot.config.ts',
+      'vitest.bench.config.ts', 'vitest.config.ts', 'vitest.e2e.config.ts', 'vitest.expected.config.ts',
+      'vitest.snapshot.config.ts',
     ])
   })