test(gates): isolate TypeRT graph assertions
This commit is contained in:
@@ -144,7 +144,8 @@ describe('Oxlint gate', () => {
|
|||||||
|
|
||||||
describe('TypeRT contract preparation', () => {
|
describe('TypeRT contract preparation', () => {
|
||||||
it('prepares primary source consumers once before they run', () => {
|
it('prepares primary source consumers once before they run', () => {
|
||||||
const subject = withPnpmEntrypoint(() => gatesForMode('ci-primary'))
|
const subject = withEnv('DSH_OXLINT_THREADS', undefined, () =>
|
||||||
|
withPnpmEntrypoint(() => gatesForMode('ci-primary')))
|
||||||
|
|
||||||
expect(subject.find(item => item.id === 'typert-contracts')).toMatchObject({
|
expect(subject.find(item => item.id === 'typert-contracts')).toMatchObject({
|
||||||
displayCommand: 'pnpm run build:lib:host',
|
displayCommand: 'pnpm run build:lib:host',
|
||||||
@@ -182,10 +183,11 @@ describe('TypeRT contract preparation', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('keeps standalone aggregates responsible for preparation', () => {
|
it('keeps standalone aggregates responsible for preparation', () => {
|
||||||
const lint = withPnpmEntrypoint(() => gatesForMode('ci-lint')[0])
|
const [lint, preparedLint, docTypecheck] = withEnv('DSH_OXLINT_THREADS', undefined, () => [
|
||||||
const preparedLint = withPnpmEntrypoint(() => gatesForMode('ci-lint-contracts-ready')[0])
|
withPnpmEntrypoint(() => gatesForMode('ci-lint')[0]),
|
||||||
const docTypecheck = withPnpmEntrypoint(() =>
|
withPnpmEntrypoint(() => gatesForMode('ci-lint-contracts-ready')[0]),
|
||||||
gatesForMode('doc-sync').find(item => item.id === 'doc-typecheck'))
|
withPnpmEntrypoint(() => gatesForMode('doc-sync').find(item => item.id === 'doc-typecheck')),
|
||||||
|
])
|
||||||
|
|
||||||
expect(lint?.displayCommand).toBe('pnpm run lint')
|
expect(lint?.displayCommand).toBe('pnpm run lint')
|
||||||
expect(preparedLint?.displayCommand).toBe('pnpm run lint:contracts-ready')
|
expect(preparedLint?.displayCommand).toBe('pnpm run lint:contracts-ready')
|
||||||
|
|||||||
Reference in New Issue
Block a user