Test

Tip

This chapter will introduce how to write and run tests for the frontend part of plugins. Content will include:

  • Test environment configuration and dependencies;
  • Writing unit tests using Vitest and Testing Library;
  • How to simulate NocoBase frontend runtime environment;
  • Automatically execute tests in CI.

We will supplement detailed examples and best practices in future versions.