@estiva-app/ui 0.104.0 → 0.104.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'nod
3
3
  import { join } from 'node:path'
4
4
  import { pathToFileURL } from 'node:url'
5
5
  import { ESLint, type Linter } from 'eslint'
6
- import { afterAll, describe, expect, it } from 'vitest'
6
+ import { afterAll, beforeAll, describe, expect, it } from 'vitest'
7
7
  import { appChecks } from './app-checks'
8
8
  import { countCommitted, hookRuns, skippedFolders, skipsListed } from './ci'
9
9
  import { writeGateCount } from './count'
@@ -354,6 +354,18 @@ describe('runHook', () => {
354
354
  })
355
355
 
356
356
  describe('gates:status', () => {
357
+ // The made apps sit inside this repository, so status read it as theirs and fetched its origin, once or twice a test:
358
+ // on the release machine that took up to 20 s and the tests ran out of time (v0.104.1, 3 November). Git stops looking
359
+ // at `node_modules`, so an app is no repository unless a test makes it one.
360
+ const ceiling = process.env.GIT_CEILING_DIRECTORIES
361
+ beforeAll(() => {
362
+ process.env.GIT_CEILING_DIRECTORIES = join(root, 'node_modules')
363
+ })
364
+ afterAll(() => {
365
+ if (ceiling === undefined) delete process.env.GIT_CEILING_DIRECTORIES
366
+ else process.env.GIT_CEILING_DIRECTORIES = ceiling
367
+ })
368
+
357
369
  it('reads a CI job by its id, a committed hook, and a script', () => {
358
370
  const dir = app('status-helpers', {
359
371
  '.github/workflows/deploy.yml': 'jobs:\n check:\n steps:\n - run: npm test\n gate:\n steps:\n # - run: npm run lint:rules\n - run: npm run lint:rules\n',