MCPcopy
hub / github.com/vitejs/vite / testConfig

Function testConfig

packages/vite/src/node/__tests__/config.spec.ts:1278–1284  ·  view source on GitHub ↗
(inlineConfig: InlineConfig)

Source from the content-addressed store, hash-verified

1276
1277test('preTransformRequests', async () => {
1278 async function testConfig(inlineConfig: InlineConfig) {
1279 return Object.fromEntries(
1280 Object.entries(
1281 (await resolveConfig(inlineConfig, 'serve')).environments,
1282 ).map(([name, e]) => [name, e.dev.preTransformRequests]),
1283 )
1284 }
1285
1286 expect(
1287 await testConfig({

Callers 1

config.spec.tsFile · 0.85

Calls 1

resolveConfigFunction · 0.90

Tested by

no test coverage detected