Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.34 KB

TESTING.md

File metadata and controls

46 lines (32 loc) · 1.34 KB

Manual Test Checklist

Existing features

Beforehand:

  • disable prisma vscode plugin
  • install prisma-ls-0.0.31.vsix

Syntax highlighting

  • open testDb.prisma from the src/__test__ folder
  • all fields should now be syntax-highlighted
  • remove datasource
  • first block should not be syntax-highlighted anymore

Linting

  • open testDb.prisma from the src/__test__ folder
  • remove provider from datasource db
  • db should now have red squiggles
  • a warning should be shown that argument provider is missing
  • replace author User? with author Use or any other word containing a spelling error
  • red squiggles should underline the error and also a quick error description should be shown
  • remove ? from authorId Int?
  • line author should be marked red, as at least one field of author and authorId is required

Auto-formatting

  • open testDb.prisma from the src/__test__ folder
  • add whitespaces between any two words or before any word
  • press shift + alt + f
  • whitespaces should be undone

Additional jump-to-definition feature

Beforehand:

  • disable prisma vscode plugin
  • install prisma-ls-jump-to-def-0.0.31.vsix

Jump-to-definition

  • open testDb.prisma from the src/__test__ folder
  • click on relation User in model Post
  • focus should now move to the term User in model User