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

Migrate tests to Jest #1630

Open
10 of 46 tasks
jackocnr opened this issue May 22, 2024 · 0 comments
Open
10 of 46 tasks

Migrate tests to Jest #1630

jackocnr opened this issue May 22, 2024 · 0 comments

Comments

@jackocnr
Copy link
Owner

jackocnr commented May 22, 2024

It's time to migrate to a modern testing setup! I've settled on Jest/testing-library and I've got a few Jest tests up and running (in /tests), but there are still a lot of old Jasmine tests to migrate over (in /src/spec). I'll keep track of the migration here. I would welcome pull requests to move more over. Thanks! 🙏

Core

  • closeCountryDropdownEvent
  • countryChangeEvent
  • countrySearch
  • dropdownShortcuts
  • initialValues
  • multipleInstances
  • openCountryDropdownEvent (new)
  • usingDropdown
  • usingInput

Methods

  • destroy
  • getExtension
  • getNumber
  • getNumberType
  • getSelectedCountryData
  • getValidationError
  • isValidNumber
  • isValidNumberPrecise
  • setCountry
  • setNumber
  • setPlaceholderNumberType

Options

  • allowDropdown
  • autoPlaceholder
  • containerClass
  • countryOrder (new)
  • customPlaceholder
  • dropdownContiner
  • excludeCountries
  • fixDropdownWidth (new)
  • formatAsYouType (new)
  • formatOnDisplay
  • geoIpLookup
  • hiddenInput
  • i18n (new)
  • initialCountry
  • nationalMode
  • onlyCountries
  • placeholderNumberType
  • showFlags (new)
  • separateDialCode
  • strictMode
  • useFullscreenPopup
  • utilsScript
  • validationNumberType (new)

Static

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

No branches or pull requests

1 participant