dfinity / eslint-config-oisy-wallet

Shared ESLint configurations from the Oisy Wallet team
Apache License 2.0
2 stars 0 forks source link

feat: add test framework and create test for one rule #11

Closed AntonioVentilii-DFINITY closed 1 month ago

AntonioVentilii-DFINITY commented 1 month ago

We create the test framework for RuleTester, that is an util to test lint rules.

To check if it works, we create a first test on existing rule use-option-type-wrapper. Note that RuleTester requires message IDs instead of hard-coded messages, when a rule is triggered.

AntonioVentilii-DFINITY commented 1 month ago

Added to CI actions with