Skip to content

Commit

Permalink
fix init
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jan 24, 2020
1 parent 01aba44 commit b2e6f0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
14 changes: 8 additions & 6 deletions cli/introspection/src/__tests__/__snapshots__/init.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`is schema wriiten on disk replace:
✔ Your Prisma schema was created at tmp/prisma/schema.prisma. You can now open it in your favorite editor.
✔ Your Prisma schema was created at tmp/prisma/schema.prisma.
You can now open it in your favorite editor.
Next steps
1. Run cd tmp to go to the newly created folder.
Expand All @@ -12,8 +13,8 @@ Next steps
You can then start using Prisma Client in your application:
\`\`\`
import { PrismaClient } from 'prisma-client-js'
// or const { PrismaClient } = require('prisma-client-js')
import { PrismaClient } from '@prisma/client'
// or const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
Expand All @@ -23,7 +24,8 @@ More information in our documentation:
https://pris.ly/d/getting-started
1`] = `
"
✔ Your Prisma schema was created at tmp/prisma/schema.prisma. You can now open it in your favorite editor.
✔ Your Prisma schema was created at tmp/prisma/schema.prisma.
You can now open it in your favorite editor.
Next steps
1. Run cd tmp to go to the newly created folder.
Expand All @@ -34,8 +36,8 @@ Next steps
You can then start using Prisma Client in your application:
\`\`\`
import { PrismaClient } from 'prisma-client-js'
// or const { PrismaClient } = require('prisma-client-js')
import { PrismaClient } from '@prisma/client'
// or const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
Expand Down
7 changes: 4 additions & 3 deletions cli/introspection/src/commands/Init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ export class Init implements Command {
}

return `
✔ Your Prisma schema was created at ${chalk.green(prismaSchema)}. You can now open it in your favorite editor.
✔ Your Prisma schema was created at ${chalk.green(prismaSchema)}.
You can now open it in your favorite editor.
Next steps${runCdInstruction}
${stepNumber}. Set your DB connection string as the \`url\` of the \`datasource\` block.
Expand All @@ -136,8 +137,8 @@ You can then start using Prisma Client in your application:
\`\`\`
${highlightTS(`\
import { PrismaClient } from 'prisma-client-js'
// or const { PrismaClient } = require('prisma-client-js')
import { PrismaClient } from '@prisma/client'
// or const { PrismaClient } = require('@prisma/client')
const prisma = new PrismaClient()
`)}
Expand Down

0 comments on commit b2e6f0d

Please sign in to comment.