Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): Fix tests generated by g cell #11364

Merged
merged 2 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export const success = {

exports[`Custom Id Field files > List cell > creates a cell list test with a custom id field 1`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './CustomIdFieldsCell'
import { standard } from './CustomIdFieldsCell.mock'

Expand Down Expand Up @@ -257,6 +258,7 @@ export const success = {

exports[`Custom Id Field files > Single cell > creates a cell test with a custom id field 1`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './CustomIdFieldCell'
import { standard } from './CustomIdFieldCell.mock'

Expand Down Expand Up @@ -373,6 +375,7 @@ export const success = {

exports[`Kebab case words > creates a cell test with a kebabCase word name 1`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'

Expand Down Expand Up @@ -489,6 +492,7 @@ export const success = {

exports[`Multiword files > creates a cell test with a multi word name 1`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'

Expand Down Expand Up @@ -605,6 +609,7 @@ export const success = {

exports[`Single word files > creates a cell test with a single word name 1`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './UserCell'
import { standard } from './UserCell.mock'

Expand Down Expand Up @@ -721,6 +726,7 @@ export const success = {

exports[`Snake case words > creates a cell test with a snakeCase word name 1`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'

Expand Down Expand Up @@ -804,6 +810,7 @@ export const Success = ({

exports[`TypeScript: generates list cells if list flag passed in 2`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './BazingaCell'
import { standard } from './BazingaCell.mock'

Expand Down Expand Up @@ -1008,6 +1015,7 @@ export const success = {

exports[`camelCase words > creates a cell test with a camelCase word name 1`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './UserProfileCell'
import { standard } from './UserProfileCell.mock'

Expand Down Expand Up @@ -1076,6 +1084,7 @@ export const Success = ({ address }) => {

exports[`generates a cell with a string primary id key 2`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './AddressCell'
import { standard } from './AddressCell.mock'

Expand Down Expand Up @@ -1198,6 +1207,7 @@ export const Success = ({ addresses }) => {

exports[`generates list a cell with a string primary id keys 2`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './AddressesCell'
import { standard } from './AddressesCell.mock'

Expand Down Expand Up @@ -1330,6 +1340,7 @@ export const Success = ({ members }) => {

exports[`generates list cells if list flag passed in 2`] = `
"import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './MembersCell'
import { standard } from './MembersCell.mock'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render } from '@redwoodjs/testing/web'

import { Loading, Empty, Failure, Success } from './${pascalName}Cell'
import { standard } from './${pascalName}Cell.mock'

Expand Down
Loading