- Install Jest for unit testing with React Testing Library - Install Playwright for end-to-end testing - Configure Jest with proper TypeScript support and module mapping - Create test setup files and utilities for both unit and e2e tests Components: * Jest configuration with coverage thresholds * Playwright configuration with browser automation * Unit tests for LoginForm, AuthContext, and useSocketIO hook * E2E tests for authentication, dashboard, and agents workflows * GitHub Actions workflow for automated testing * Mock data and API utilities for consistent testing * Test documentation with best practices Testing features: - Unit tests with 70% coverage threshold - E2E tests with API mocking and user journey testing - CI/CD integration for automated test runs - Cross-browser testing support with Playwright - Authentication system testing end-to-end 🚀 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
//.CommonJS
|
|
var CSSOM = {};
|
|
///CommonJS
|
|
|
|
/**
|
|
* @constructor
|
|
* @see http://dev.w3.org/csswg/cssom/#the-cssrule-interface
|
|
* @see http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSRule
|
|
*/
|
|
CSSOM.CSSRule = function CSSRule() {
|
|
this.parentRule = null;
|
|
this.parentStyleSheet = null;
|
|
};
|
|
|
|
CSSOM.CSSRule.UNKNOWN_RULE = 0; // obsolete
|
|
CSSOM.CSSRule.STYLE_RULE = 1;
|
|
CSSOM.CSSRule.CHARSET_RULE = 2; // obsolete
|
|
CSSOM.CSSRule.IMPORT_RULE = 3;
|
|
CSSOM.CSSRule.MEDIA_RULE = 4;
|
|
CSSOM.CSSRule.FONT_FACE_RULE = 5;
|
|
CSSOM.CSSRule.PAGE_RULE = 6;
|
|
CSSOM.CSSRule.KEYFRAMES_RULE = 7;
|
|
CSSOM.CSSRule.KEYFRAME_RULE = 8;
|
|
CSSOM.CSSRule.MARGIN_RULE = 9;
|
|
CSSOM.CSSRule.NAMESPACE_RULE = 10;
|
|
CSSOM.CSSRule.COUNTER_STYLE_RULE = 11;
|
|
CSSOM.CSSRule.SUPPORTS_RULE = 12;
|
|
CSSOM.CSSRule.DOCUMENT_RULE = 13;
|
|
CSSOM.CSSRule.FONT_FEATURE_VALUES_RULE = 14;
|
|
CSSOM.CSSRule.VIEWPORT_RULE = 15;
|
|
CSSOM.CSSRule.REGION_STYLE_RULE = 16;
|
|
CSSOM.CSSRule.CONTAINER_RULE = 17;
|
|
CSSOM.CSSRule.LAYER_BLOCK_RULE = 18;
|
|
CSSOM.CSSRule.STARTING_STYLE_RULE = 1002;
|
|
|
|
CSSOM.CSSRule.prototype = {
|
|
constructor: CSSOM.CSSRule,
|
|
//FIXME
|
|
};
|
|
|
|
exports.CSSRule = CSSOM.CSSRule;
|
|
///CommonJS
|