Add a Posts Schema just to test authentication
This commit is contained in:
23
api/src/services/posts/posts.scenarios.ts
Normal file
23
api/src/services/posts/posts.scenarios.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import type { Prisma, Post } from '@prisma/client'
|
||||
import type { ScenarioData } from '@redwoodjs/testing/api'
|
||||
|
||||
export const standard = defineScenario<Prisma.PostCreateArgs>({
|
||||
post: {
|
||||
one: {
|
||||
data: {
|
||||
title: 'String',
|
||||
body: 'String',
|
||||
updatedAt: '2024-10-04T07:38:59.006Z',
|
||||
},
|
||||
},
|
||||
two: {
|
||||
data: {
|
||||
title: 'String',
|
||||
body: 'String',
|
||||
updatedAt: '2024-10-04T07:38:59.006Z',
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
export type StandardScenario = ScenarioData<Post, 'post'>
|
||||
Reference in New Issue
Block a user