瀏覽代碼

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 1 月之前
父節點
當前提交
74e27c97d0
共有 1 個文件被更改,包括 2 次插入 和 1 次删除
  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', () => {
   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.
     // Guards the discovery itself: a glob that stopped matching would make every case below vacuous.
     expect(declared.map(entry => entry.config)).toEqual([
     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',
     ])
     ])
   })
   })