@@ -19,7 +19,7 @@ function write(repo: string, file: string, content: string) {
1919 writeFileSync ( join ( repo , file ) , content )
2020}
2121
22- /** Builds a clone whose base commit holds `apps/desktop /x.ts` and whose origin is a local bare repo. */
22+ /** Builds a clone whose base commit holds `apps/sim /x.ts` and whose origin is a local bare repo. */
2323function fixture ( ) {
2424 const root = mkdtempSync ( join ( tmpdir ( ) , 'desktop-live-changes-' ) )
2525 fixtures . push ( root )
@@ -31,7 +31,7 @@ function fixture() {
3131 git ( repo , 'config' , 'user.name' , 'Test' )
3232 git ( repo , 'config' , 'commit.gpgsign' , 'false' )
3333 git ( repo , 'remote' , 'add' , 'origin' , origin )
34- write ( repo , 'apps/desktop /x.ts' , 'export const x = 1\n' . repeat ( 20 ) )
34+ write ( repo , 'apps/sim /x.ts' , 'export const x = 1\n' . repeat ( 20 ) )
3535 git ( repo , 'add' , '-A' )
3636 git ( repo , 'commit' , '--quiet' , '-m' , 'base' )
3737 const base = git ( repo , 'rev-parse' , 'HEAD' )
@@ -51,7 +51,7 @@ describe('desktop live change gate', () => {
5151 it ( 'runs the suite when a live file moves into a skipped path' , ( ) => {
5252 const { repo, base } = fixture ( )
5353 mkdirSync ( join ( repo , 'apps/docs' ) , { recursive : true } )
54- git ( repo , 'mv' , 'apps/desktop /x.ts' , 'apps/docs/x.ts' )
54+ git ( repo , 'mv' , 'apps/sim /x.ts' , 'apps/docs/x.ts' )
5555 git ( repo , 'commit' , '--quiet' , '-m' , 'move' )
5656
5757 const result = detect ( repo , base )
@@ -70,28 +70,6 @@ describe('desktop live change gate', () => {
7070 expect ( result . stdout . trim ( ) ) . toBe ( 'changed=false' )
7171 } )
7272
73- it ( 'skips the suite when an app change is outside every path it exercises' , ( ) => {
74- const { repo, base } = fixture ( )
75- write ( repo , 'apps/sim/app/api/schedules/execute/route.ts' , 'export const GET = () => null\n' )
76- git ( repo , 'add' , '-A' )
77- git ( repo , 'commit' , '--quiet' , '-m' , 'schedules' )
78-
79- const result = detect ( repo , base )
80- expect ( result . status , result . stderr ) . toBe ( 0 )
81- expect ( result . stdout . trim ( ) ) . toBe ( 'changed=false' )
82- } )
83-
84- it ( 'runs the suite when a change touches the chat page' , ( ) => {
85- const { repo, base } = fixture ( )
86- write ( repo , 'apps/sim/app/workspace/[workspaceId]/home/page.tsx' , 'export default null\n' )
87- git ( repo , 'add' , '-A' )
88- git ( repo , 'commit' , '--quiet' , '-m' , 'chat page' )
89-
90- const result = detect ( repo , base )
91- expect ( result . status , result . stderr ) . toBe ( 0 )
92- expect ( result . stdout . trim ( ) ) . toBe ( 'changed=true' )
93- } )
94-
9573 it ( 'runs the suite when the base commit cannot be fetched' , ( ) => {
9674 const { repo } = fixture ( )
9775 const result = detect ( repo , '0' . repeat ( 40 ) )
0 commit comments