MCPcopy
hub / github.com/vitest-dev/vitest / run

Function run

test/cli/test/setup-files.test.ts:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 const file = './fixtures/setup-files/empty-setup.ts'
20
21 async function run() {
22 return await runVitest({
23 root: 'fixtures/setup-files',
24 include: ['empty.test.ts'],
25 setupFiles: ['./empty-setup.ts'],
26 changed: true,
27 })
28 }
29
30 // Note that this test will fail locally if you have uncommitted changes
31 it.runIf(process.env.GITHUB_ACTIONS && !process.env.ECOSYSTEM_CI)('should run no tests if setup file is not changed', async () => {

Callers 1

Calls 1

runVitestFunction · 0.90

Tested by

no test coverage detected