Skip to content

Commit

Permalink
Fixes headless tests
Browse files Browse the repository at this point in the history
  • Loading branch information
infomiho committed May 30, 2024
1 parent d078f20 commit 0c7832a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions waspc/headless-test/examples/todoApp/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
// Wasp uses the datasource you specify but overwrites the `url` field.
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}

// Wasp requires the `prisma-client-js` generator to be present.
generator client {
provider = "prisma-client-js"
}

model User {
id Int @id @default(autoincrement())
// Business logic
Expand Down
1 change: 0 additions & 1 deletion waspc/headless-test/examples/todoApp/todoApp.wasp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ app todoApp {
setupFn: import setup from "@src/client/clientSetup.js"
},
db: {
system: PostgreSQL,
seeds: [
import { devSeedSimple } from "@src/server/dbSeeds.js",
import { prodSeed } from "@src/server/dbSeeds.js"
Expand Down

0 comments on commit 0c7832a

Please sign in to comment.