@@ -29,26 +29,26 @@ describe('ai-checklist-flags', () => {
2929 } ) ;
3030
3131 describe ( 'hasAiInitOptIn' , ( ) => {
32- it ( 'returns true when nothing is cached' , async ( ) => {
32+ it ( 'returns false when nothing is cached' , async ( ) => {
3333 const { hasAiInitOptIn } = await import ( './ai-checklist-flags.ts' ) ;
34- expect ( await hasAiInitOptIn ( '/some/project/.storybook' ) ) . toBe ( true ) ;
34+ expect ( await hasAiInitOptIn ( '/some/project/.storybook' ) ) . toBe ( false ) ;
3535 } ) ;
3636
37- it ( 'returns true when the cached configDir is for a different project' , async ( ) => {
37+ it ( 'returns false when the cached configDir is for a different project' , async ( ) => {
3838 mockCacheStore . set ( 'ai-init-opt-in' , {
3939 timestamp : Date . now ( ) ,
4040 configDir : resolve ( '/repo/apps/web/.storybook' ) ,
4141 } ) ;
4242 const { hasAiInitOptIn } = await import ( './ai-checklist-flags.ts' ) ;
43- expect ( await hasAiInitOptIn ( '/repo/packages/ui/.storybook' ) ) . toBe ( true ) ;
43+ expect ( await hasAiInitOptIn ( '/repo/packages/ui/.storybook' ) ) . toBe ( false ) ;
4444 } ) ;
4545
46- it ( 'returns true when the cached entry lacks a configDir field' , async ( ) => {
46+ it ( 'returns false when the cached entry lacks a configDir field' , async ( ) => {
4747 // Defensive — should never happen in practice because the CLI always
4848 // writes configDir, but a corrupted cache shouldn't unlock this flag.
4949 mockCacheStore . set ( 'ai-init-opt-in' , { timestamp : Date . now ( ) } ) ;
5050 const { hasAiInitOptIn } = await import ( './ai-checklist-flags.ts' ) ;
51- expect ( await hasAiInitOptIn ( '/any/project/.storybook' ) ) . toBe ( true ) ;
51+ expect ( await hasAiInitOptIn ( '/any/project/.storybook' ) ) . toBe ( false ) ;
5252 } ) ;
5353
5454 it ( 'returns true when the cached configDir matches the resolved input' , async ( ) => {
0 commit comments