You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
guledali
changed the title
yarn rw g scaffold post is missing tests file(layouts, pages and cells)
yarn rw g scaffold post, is missing tests file(layouts, pages and cells)
Jun 12, 2020
guledali
changed the title
yarn rw g scaffold post, is missing tests file(layouts, pages and cells)
yarn rw g scaffold post, is missing tests files(layouts, pages and cells)
Jun 12, 2020
@guledali Thanks for noticing this. @AryanJ-NYC brought this up as well in issue #603. As @cannikin said there, the reason we don't have tests is we haven't figured out the best way to test cells, GraphQL, and Prisma yet. But this is probably also going to have to wait for the generator refactor, which is being discussed in #653.
Moreover, we probably won't just copy the files over. Ideally, the tests for scaffolds will be one of the ways we show off Redwood's testing package and some best practices for it.
https://github.com/redwoodjs/redwood/tree/master/packages/cli/src/commands/generate/scaffold/templates
Individually they all have test files in them, just not when you run the
yarn rw g scaffold
command. So we can just copy them into scaffold folder.Cell: https://github.com/redwoodjs/redwood/blob/master/packages/cli/src/commands/generate/cell/templates/test.js.template
Pages:
https://github.com/redwoodjs/redwood/blob/master/packages/cli/src/commands/generate/page/templates/test.js.template
Layout
https://github.com/redwoodjs/redwood/blob/master/packages/cli/src/commands/generate/layout/templates/test.js.template
The text was updated successfully, but these errors were encountered: