testing

📁 sailscastshq/boring-stack 📅 1 day ago
1
总安装量
1
周安装量
#51338
全站排名
安装命令
npx skills add https://github.com/sailscastshq/boring-stack --skill testing

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
github-copilot 1
claude-code 1

Skill 文档

Testing

The Boring JavaScript Stack uses a layered testing strategy: unit tests for helpers and business logic, integration tests for Inertia action responses, and end-to-end tests for full browser flows. Each layer uses purpose-built tooling that requires zero external test frameworks.

When to Use

Use this skill when:

  • Writing unit tests for Sails.js helpers using Node.js built-in test runner (node:test)
  • Writing end-to-end tests with Playwright for page flows and user interactions
  • Writing integration tests using inertia-sails/test assertion library
  • Configuring the test environment (config/env/test.js, database strategy, email mocking)
  • Setting up Playwright configuration (playwright.config.js)
  • Setting up CI/CD pipelines with GitHub Actions for automated testing
  • Understanding the getSails() singleton pattern for test initialization

Rules

Read individual rule files for detailed explanations and code examples: