{"library":"karma-static-server","type":"library","category":null,"description":"The `karma-static-server` package is a plugin for the Karma test runner, enabling it to serve static files alongside its primary function of running tests in browsers. It is currently at stable version 2.0.0, which was last published approximately four years ago, indicating a slow or halted release cadence. This utility integrates the `serve-static` middleware directly into the Karma server, providing a convenient way to serve application assets such as HTML templates, images, CSS, or JSON data that tests might depend on, without requiring a separate web server. Its key differentiator lies in its seamless configuration within the `karma.conf.js` file, allowing developers to define a custom `root` directory for served files or default to Karma's `basePath`. It also provides options for logging static file requests through Karma's standard logging mechanism. Given that Karma itself has been officially deprecated since July 2024, this plugin is effectively in an unmaintained state, with no new features or general bug fixes anticipated.","language":"javascript","status":"abandoned","version":"2.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install karma-static-server","imports":["// In karma.conf.js\nmodule.exports = function(config) {\n  config.set({\n    middleware: ['staticServer'],\n    plugins: [\n      'karma-*',\n      require('karma-static-server')\n    ],\n    // ... other config\n  });\n};","// In karma.conf.js\nmodule.exports = function(config) {\n  config.set({\n    urlRoot: '/test/', // Recommended to avoid conflicts\n    // ... other config\n  });\n};","// In karma.conf.js\nmodule.exports = function(config) {\n  config.set({\n    staticServer: {\n      root: require('path').join(__dirname, 'public'),\n      log: true\n    },\n    // ... other config\n  });\n};"]},{"cmd":"yarn add karma-static-server","imports":[]},{"cmd":"pnpm add karma-static-server","imports":[]}],"homepage":null,"github":"https://github.com/brandonocasey/karma-static-server","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/karma-static-server","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/karma-static-server/compatibility"}}