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

Problème avec les valeurs par défaut de type enum contenant des underscore #2

Closed
benoitguigal opened this issue Feb 24, 2021 · 1 comment

Comments

@benoitguigal
Copy link

J'ai défini un type enum de la façon suivante:

enum Status {
  TO_BE_VERIFIED
  VERIFIED
}

puis un type contenant ce champ status

type Company {
  status: Status
}

Le mock généré est

export function createCompanyMock(props: Partial<Company>): Company {
  return {
    status: Status.To_Be_Verified // error, should be Status.ToBeVerified
  }
}
@zhouzi
Copy link
Owner

zhouzi commented Feb 24, 2021

Merci pour le signalement 🙏 Ce bug a été corrigé dans b7814e8 et publié dans la version 0.0.8. Fais moi signe si tu rencontres toujours des soucis après avoir fait la mise à jour 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants