1
0
Эх сурвалжийг харах

test: separate independent policy gate registration cases

Tianyi Cui 1 долоо хоног өмнө
parent
commit
1b4e1ac076
1 өөрчлөгдсөн 12 нэмэгдсэн , 12 устгасан
  1. 12 12
      scripts/run-gates.spec.ts

+ 12 - 12
scripts/run-gates.spec.ts

@@ -182,18 +182,6 @@ describe('gate graph validation', () => {
     expect(scripts['test:bench:built']).toBe('vitest run --config vitest.bench.config.ts')
   })
 
-  it('keeps the public repository link policy in the documentation gate', () => {
-    const ids = withPnpmEntrypoint(() => gatesForMode('doc-sync').map(subject => subject.id))
-
-    expect(ids).toContain('public-repository-links')
-  })
-
-  it('keeps the concrete terminology policy in the documentation gate', () => {
-    const ids = withPnpmEntrypoint(() => gatesForMode('doc-sync').map(subject => subject.id))
-
-    expect(ids).toContain('concrete-terms')
-  })
-
   it('checks all maintained repository references locally and in CI', () => {
     const { scripts } = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')) as {
       scripts: Record<string, string>
@@ -208,6 +196,18 @@ describe('gate graph validation', () => {
     expect(scripts['verify-repository-references']).toBe('tsx scripts/verify-repository-references.ts')
   })
 
+  it('keeps the public repository link policy in the documentation gate', () => {
+    const ids = withPnpmEntrypoint(() => gatesForMode('doc-sync').map(subject => subject.id))
+
+    expect(ids).toContain('public-repository-links')
+  })
+
+  it('keeps the concrete terminology policy in the documentation gate', () => {
+    const ids = withPnpmEntrypoint(() => gatesForMode('doc-sync').map(subject => subject.id))
+
+    expect(ids).toContain('concrete-terms')
+  })
+
   it('keeps package-group subsystem ownership in the documentation gate', () => {
     const ids = withPnpmEntrypoint(() => gatesForMode('doc-sync').map(subject => subject.id))