@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.
- package/dist/ContainerHeader.d.ts.map +1 -1
- package/dist/ConversationCard.d.ts +8 -2
- package/dist/ConversationCard.d.ts.map +1 -1
- package/dist/ConversationLayout.d.ts +4 -1
- package/dist/ConversationLayout.d.ts.map +1 -1
- package/dist/ResolveDialog.d.ts.map +1 -1
- package/dist/index.js +151 -102
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/registry.json +2 -2
- package/src/ContainerHeader.mdx +2 -0
- package/src/ContainerHeader.test.tsx +6 -0
- package/src/ContainerHeader.tsx +3 -1
- package/src/ConversationCard.mdx +4 -2
- package/src/ConversationCard.stories.tsx +14 -0
- package/src/ConversationCard.test.tsx +130 -2
- package/src/ConversationCard.tsx +128 -56
- package/src/ConversationLayout.mdx +4 -0
- package/src/ConversationLayout.tsx +4 -1
- package/src/PageHeader.mdx +1 -0
- package/src/ReplyCard.mdx +1 -0
- package/src/ResolveDialog.test.tsx +11 -0
- package/src/ResolveDialog.tsx +5 -2
- package/src/gates/gates.test.ts +13 -1
package/src/gates/gates.test.ts
CHANGED
|
@@ -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',
|