 aacb45156b
			
		
	
	aacb45156b
	
	
	
		
			
			- 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>
		
			
				
	
	
		
			65 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| 
 | |
| exports.__esModule = true;
 | |
| exports.default = void 0;
 | |
| function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
 | |
| function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
 | |
| function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
 | |
| function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
 | |
| function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
 | |
| function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
 | |
| function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
 | |
| // for environments without Set we fallback to arrays with unique members
 | |
| var SetLike = /*#__PURE__*/function () {
 | |
|   function SetLike() {
 | |
|     var items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
 | |
|     _classCallCheck(this, SetLike);
 | |
|     _defineProperty(this, "items", void 0);
 | |
|     this.items = items;
 | |
|   }
 | |
|   _createClass(SetLike, [{
 | |
|     key: "add",
 | |
|     value: function add(value) {
 | |
|       if (this.has(value) === false) {
 | |
|         this.items.push(value);
 | |
|       }
 | |
|       return this;
 | |
|     }
 | |
|   }, {
 | |
|     key: "clear",
 | |
|     value: function clear() {
 | |
|       this.items = [];
 | |
|     }
 | |
|   }, {
 | |
|     key: "delete",
 | |
|     value: function _delete(value) {
 | |
|       var previousLength = this.items.length;
 | |
|       this.items = this.items.filter(function (item) {
 | |
|         return item !== value;
 | |
|       });
 | |
|       return previousLength !== this.items.length;
 | |
|     }
 | |
|   }, {
 | |
|     key: "forEach",
 | |
|     value: function forEach(callbackfn) {
 | |
|       var _this = this;
 | |
|       this.items.forEach(function (item) {
 | |
|         callbackfn(item, item, _this);
 | |
|       });
 | |
|     }
 | |
|   }, {
 | |
|     key: "has",
 | |
|     value: function has(value) {
 | |
|       return this.items.indexOf(value) !== -1;
 | |
|     }
 | |
|   }, {
 | |
|     key: "size",
 | |
|     get: function get() {
 | |
|       return this.items.length;
 | |
|     }
 | |
|   }]);
 | |
|   return SetLike;
 | |
| }();
 | |
| var _default = typeof Set === "undefined" ? Set : SetLike;
 | |
| exports.default = _default;
 | |
| //# sourceMappingURL=SetLike.js.map
 |