@@ -166,7 +166,7 @@ describe('SwiftData Persistence Layer', () => {
166166 const files = generateSwiftDataModels ( model ) ;
167167
168168 expect ( files . length ) . toBeGreaterThan ( 0 ) ;
169- const storeFile = files . find ( f => f . path . includes ( 'ProductStore ' ) ) ;
169+ const storeFile = files . find ( f => f . path . includes ( 'DataStore ' ) ) ;
170170 expect ( storeFile ) . toBeDefined ( ) ;
171171 } ) ;
172172
@@ -176,7 +176,7 @@ describe('SwiftData Persistence Layer', () => {
176176 const content = files [ 0 ] . content ;
177177
178178 expect ( content ) . toContain ( '@Model' ) ;
179- expect ( content ) . toContain ( 'final class ProductStore ' ) ;
179+ expect ( content ) . toContain ( 'final class ProductRecord ' ) ;
180180 } ) ;
181181
182182 test ( 'SwiftData model imports SwiftData' , ( ) => {
@@ -211,12 +211,12 @@ describe('SwiftData Persistence Layer', () => {
211211 expect ( content ) . toContain ( '@Attribute(.unique)' ) ;
212212 } ) ;
213213
214- test ( 'SwiftData model uses Store suffix naming' , ( ) => {
214+ test ( 'SwiftData model uses Record suffix naming' , ( ) => {
215215 const model = createMinimalModel ( [ productEntity , userEntity ] ) ;
216216 const files = generateSwiftDataModels ( model ) ;
217217
218- const productStore = files . find ( f => f . content . includes ( 'ProductStore ' ) ) ;
219- const userStore = files . find ( f => f . content . includes ( 'UserStore ' ) ) ;
218+ const productStore = files . find ( f => f . content . includes ( 'ProductRecord ' ) ) ;
219+ const userStore = files . find ( f => f . content . includes ( 'UserRecord ' ) ) ;
220220
221221 expect ( productStore ) . toBeDefined ( ) ;
222222 expect ( userStore ) . toBeDefined ( ) ;
@@ -275,7 +275,7 @@ describe('SwiftData Persistence Layer', () => {
275275 const content = files [ 0 ] . content ;
276276
277277 expect ( content ) . toContain ( '@Relationship' ) ;
278- expect ( content ) . toContain ( '[ProductStore ]' ) ;
278+ expect ( content ) . toContain ( '[ProductRecord ]' ) ;
279279 } ) ;
280280 } ) ;
281281
@@ -327,7 +327,7 @@ describe('SwiftData Persistence Layer', () => {
327327 const file = generateDataManager ( model ) ;
328328 const content = file ! . content ;
329329
330- expect ( content ) . toContain ( 'FetchDescriptor<ProductStore >' ) ;
330+ expect ( content ) . toContain ( 'FetchDescriptor<ProductRecord >' ) ;
331331 } ) ;
332332
333333 test ( 'DataManager imports SwiftData' , ( ) => {
@@ -371,11 +371,11 @@ describe('SwiftData Persistence Layer', () => {
371371 // Verify the naming convention that project-generator uses
372372 const storeTypeNames = eligible . map ( e => {
373373 const name = e . name . charAt ( 0 ) . toUpperCase ( ) + e . name . slice ( 1 ) ;
374- return `${ name } Store .self` ;
374+ return `${ name } Record .self` ;
375375 } ) ;
376376
377- expect ( storeTypeNames ) . toContain ( 'ProductStore .self' ) ;
378- expect ( storeTypeNames ) . toContain ( 'UserStore .self' ) ;
377+ expect ( storeTypeNames ) . toContain ( 'ProductRecord .self' ) ;
378+ expect ( storeTypeNames ) . toContain ( 'UserRecord .self' ) ;
379379 } ) ;
380380 } ) ;
381381} ) ;
0 commit comments