Skip to content

pug-lint-config:pug-lint を実行するテストがない #1091

Backlog

Description

@YusukeHirao

内容

@d-zero/pug-lint-config が配る設定を、pug-lint で実行するテストが CI にない。yarn test にも yarn lint:ci にも、pug-lint を実行する箇所がない。

  • 依存:pug-lint
  • 使っている箇所:packages/@d-zero/pug-lint-config/index.js
  • 影響:pug-lint の major 更新で、設定の読み込みやルールが壊れても、CI が通る。そのため、この依存の major 更新は自動マージの例外にしている(Renovate が manual-review ラベルを付け、人が確認する)

足すべきテスト

test/fixtures/pug-lint/ に違反を含む .pug を置き、test/cli.spec.mjs に pug-lint の CLI を実行するテストを足す(ESLint・stylelint のテストと同じ形)。期待する違反を toStrictEqual で確かめる。

テストが足されたら、この依存を例外から外すかを確認する。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions