Repository navigation
feat(cli): log the prisma schema path when loaded - #3666
Conversation
41a1aeb to
b8064ea
Compare
| const result = Doctor.new().parse([]) | ||
| await expect(result).rejects.toThrowErrorMatchingInlineSnapshot( | ||
| `Either provide --schema or make sure that you are in a folder with a schema.prisma file.`, | ||
| `Either provide --schema or configure a path in your package.json in a \`prisma.schema\` field or make sure that you are in a folder with a schema.prisma file.`, |
There was a problem hiding this comment.
If you have a better wording here let me know
There was a problem hiding this comment.
Is this the full error message, or is there more around this sentence?
|
Nice! From the logs it looks like we would want to change the introspect logs: Also did you try with an absolute path? Is the output correct then? |
|
Ok so absolute paths are transformed into relatives indeed. Something that will be confusing for Windows users though is the concatenation of |
Jolg42
left a comment
There was a problem hiding this comment.
My brain got confused when I found out the fixtures folder name don’t match the package.json “name”
ie: one folder is pkg-json-invalid-path and pkg name is pkg-json-valid-path
Not all fixtures are affected but it would be nice to fix
maybe you can rename them to match or put a generic name that is less confusing?
|
all done |
Closes #3647
Prisma Schema loaded from <path>after reading the schema.prisma file