JSPM

pane-registry

2.5.1-f5c2189
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1061
  • Score
    100M100P100Q140908F
  • License MIT

Solid-compatible Panes: Pane Registry

Package Exports

  • pane-registry
  • pane-registry/src/paneRegistry.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pane-registry) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pane-registry

An index to hold all loaded solid panes, whether statically or dynamically loaded

Adendum

The pane registry is a crucial part of the Solid Panes system. It is where any pane inserts itself or is inserted. In the standard working of SolidOS, there is one place in solid-panes where all the normal panes are loaded into the pane registry (see: registerPanes.js in solid-panes). But other apps, and especially developers developing new panes can insert their own panes. And so we hope we will end up with panes dynamically laoded according to user configuration preferences.

Testing Guide

Running Tests

# Run all tests
npm test

# Run all tests with coverages
npm test-coverage

# Run tests in watch mode
npm run test-watch

# Run linting only
npm run lint

# Auto-fix linting issues
npm run lint-fix

Test Coverage

The tests provide 100% code coverage for all functionality:

  • Initial State Tests: Verify registry starts empty
  • Registration Tests: Test pane registration with various scenarios
  • Lookup Tests: Test finding panes by name
  • Integration Tests: Complex workflows and edge cases

Test Structure

  • test/paneRegistry.test.js - Main test suite
  • Tests use Jest framework with comprehensive mocking
  • Console output is mocked to avoid noise during testing
  • State is reset between tests for isolation

Coverage Report

After running tests, view the coverage report:

  • Text summary in console
  • HTML report in coverage/ directory