diff --git a/package.json b/package.json index 3d4f8d993..e5dd50cce 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "test": "pnpm --filter test-core test:threads", "test:ci": "CI=true pnpm -r --reporter-hide-prefix --stream --filter '@vitest/test-*' --filter !test-browser run test", "test:examples": "CI=true pnpm -r --reporter-hide-prefix --stream --filter '@vitest/example-*' run test", + "test:ecosystem-ci": "ECOSYSTEM_CI=true pnpm test:ci", "typecheck": "tsc -p tsconfig.check.json --noEmit", "typecheck:why": "tsc -p tsconfig.check.json --noEmit --explainFiles > explainTypes.txt", "ui:build": "vite build packages/ui", diff --git a/test/cli/test/git-changed.test.ts b/test/cli/test/git-changed.test.ts index e0e43c4d2..d63f5dc8a 100644 --- a/test/cli/test/git-changed.test.ts +++ b/test/cli/test/git-changed.test.ts @@ -8,7 +8,8 @@ const fileName = 'fixtures/git-changed/related/rerun.temp' // NOTE: if there are any changes in fixtures/git-changed, // most tests will probably fail -describe('forceRerunTrigger', () => { +// ecosystem-ci updated package.json and make this test fail +describe.skipIf(process.env.ECOSYSTEM_CI)('forceRerunTrigger', () => { async function run() { return runVitest({ root: join(process.cwd(), 'fixtures/git-changed/related'), diff --git a/test/cli/test/setup-files.test.ts b/test/cli/test/setup-files.test.ts index 2e06e58df..3e67edeab 100644 --- a/test/cli/test/setup-files.test.ts +++ b/test/cli/test/setup-files.test.ts @@ -27,7 +27,7 @@ describe('setup files with forceRerunTrigger', () => { } // Note that this test will fail locally if you have uncommitted changes - it.runIf(process.env.GITHUB_ACTIONS)('should run no tests if setup file is not changed', async () => { + it.runIf(process.env.GITHUB_ACTIONS && !process.env.ECOSYSTEM_CI)('should run no tests if setup file is not changed', async () => { const { stdout } = await run() expect(stdout).toContain('No test files found, exiting with code 0') })