Tutorials

Create Pattern Rules

BackNext

10. Write a test

Add two tests to your rule:

  1. One test with a file name that starts with test_: it will not trigger any issue
  2. One test with a file name that does not start with test_ and will trigger the issue

For both tests, put the content with

1assert foo

Let's go!

Start interacting with the tutorial!

my-new-rule.js

Codiga Logo
Codiga Hub
  • Rulesets
  • Playground
  • Snippets
  • Cookbooks
soc-2 icon

We are SOC-2 Compliance Certified

G2 high performer medal

Codiga – All rights reserved 2022.