{"_id":"cypress-intercept-search","_rev":"6-eaa7f733dc144f044e139c05f2dcc129","name":"cypress-intercept-search","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"cypress-intercept-search","version":"1.0.0","keywords":["cypress","cypress-plugin","intercept","search","testing","assertion"],"author":{"name":"Lasitha Wijenayake"},"license":"MIT","_id":"cypress-intercept-search@1.0.0","maintainers":[{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"}],"homepage":"https://github.com/lasithdilshan20/cypress-intercept-search#readme","bugs":{"url":"https://github.com/lasithdilshan20/cypress-intercept-search/issues"},"dist":{"shasum":"d294698d545a01a8956b49440fdb3c82afef0939","tarball":"https://registry.npmjs.org/cypress-intercept-search/-/cypress-intercept-search-1.0.0.tgz","fileCount":9,"integrity":"sha512-hAHF73tuy/k7yPiRlo6Mfiw0sqiBSGQ7kMwUtZGUSicl+yBcuepUdYIHQ8kCFwLlSyFJCxLgOT/xHUmXtvngVg==","signatures":[{"sig":"MEUCIHCI8s3NymYvq9Ad1Eyeq826qKOXOUCru8ji2kefOni7AiEAzGpF9OOh03I2rbmPVP+TfO0Kd4qi7Duyn+P0y1RobUw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17973},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"999f1f22c2ff4116f2b00a8f5fdfbe44c8588f2e","scripts":{"dev":"tsc -w & node server.js","build":"tsc","start":"node server.js","cypress:run":"cypress run","test:server":"node server.js","cypress:open":"cypress open"},"_npmUser":{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"},"repository":{"url":"git+https://github.com/lasithdilshan20/cypress-intercept-search.git","type":"git"},"_npmVersion":"10.8.2","description":"A Cypress plugin to recursively search your intercepted requests/responses by key/value","directories":{},"_nodeVersion":"20.16.0","dependencies":{"cors":"^2.8.5","lodash":"^4.17.21","express":"^4.18.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.0.0","@types/cors":"^2.8.13","@types/node":"^18.15.0","@types/express":"^4.17.17"},"peerDependencies":{"cypress":"^10.0.0 || ^11.0.0 || ^12.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-intercept-search_1.0.0_1746778484917_0.6109344844158631","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"cypress-intercept-search","version":"1.0.1","keywords":["cypress","cypress-plugin","intercept","search","testing","assertion"],"author":{"name":"Lasitha Wijenayake"},"license":"MIT","_id":"cypress-intercept-search@1.0.1","maintainers":[{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"}],"homepage":"https://github.com/lasithdilshan20/cypress-intercept-search#readme","bugs":{"url":"https://github.com/lasithdilshan20/cypress-intercept-search/issues"},"dist":{"shasum":"17e74568d77fe3023684036837ede765d68c73ae","tarball":"https://registry.npmjs.org/cypress-intercept-search/-/cypress-intercept-search-1.0.1.tgz","fileCount":9,"integrity":"sha512-ZGwLM7UWWDQ8wD6jecstTK/G+58PNxtiKITIjvMdkTjXAzUapfnhctLFDCE4z6D5m4wVEOz/8nvaZQtuIltv6A==","signatures":[{"sig":"MEUCIQDBCEH+0guG3mkjmN1LbR86Zl6vuFjbpUEGXp0E5YJNdQIgalMwPB2tuJv1qIcTKAkFQVopVA5vut7BHkDeFAi0x9A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17995},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"999f1f22c2ff4116f2b00a8f5fdfbe44c8588f2e","scripts":{"dev":"tsc -w & node server.js","build":"tsc","start":"node server.js","cypress:run":"cypress run","test:server":"node server.js","cypress:open":"cypress open"},"_npmUser":{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"},"repository":{"url":"git+https://github.com/lasithdilshan20/cypress-intercept-search.git","type":"git"},"_npmVersion":"10.8.2","description":"A Cypress plugin to recursively search your intercepted requests/responses by key/value","directories":{},"_nodeVersion":"20.16.0","dependencies":{"cors":"^2.8.5","lodash":"^4.17.21","express":"^4.18.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.0.0","@types/cors":"^2.8.13","@types/node":"^18.15.0","@types/express":"^4.17.17"},"peerDependencies":{"cypress":"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-intercept-search_1.0.1_1746778968808_0.881515352658192","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"cypress-intercept-search","version":"1.0.2","keywords":["cypress","cypress-plugin","intercept","search","testing","assertion"],"author":{"name":"Lasitha Wijenayake"},"license":"MIT","_id":"cypress-intercept-search@1.0.2","maintainers":[{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"}],"homepage":"https://github.com/lasithdilshan20/cypress-intercept-search#readme","bugs":{"url":"https://github.com/lasithdilshan20/cypress-intercept-search/issues"},"dist":{"shasum":"e72ac2b2343a78ef5aac2451c722c0c27ad1929d","tarball":"https://registry.npmjs.org/cypress-intercept-search/-/cypress-intercept-search-1.0.2.tgz","fileCount":9,"integrity":"sha512-T0a0aZr3/JynBV5DRq09lLMSyLFZ9WC9c/hA1xtivzCP+0XEW1gbjmri4bVIihTyrAWMf3xwjqFgJHc8DpXelA==","signatures":[{"sig":"MEQCIBMgeVtaWNDq4VgUeg2iCoW4BKRqiv45NpcxO5g4cTJyAiBY6JNNPexpi1b9Y9KFmQwYrY7hBCxspiDMFpashsFyeQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16988},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"0d1fc168a8b40cf86f69a3456e64146cf473d31c","scripts":{"dev":"tsc -w & node server.js","build":"tsc","start":"node server.js","cypress:run":"cypress run","test:server":"node server.js","cypress:open":"cypress open"},"_npmUser":{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"},"repository":{"url":"git+https://github.com/lasithdilshan20/cypress-intercept-search.git","type":"git"},"_npmVersion":"10.8.2","description":"A Cypress plugin to recursively search your intercepted requests/responses by key/value","directories":{},"_nodeVersion":"20.16.0","dependencies":{"cors":"^2.8.5","lodash":"^4.17.21","express":"^4.18.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.0.0","@types/cors":"^2.8.13","@types/node":"^18.15.0","@types/express":"^4.17.17"},"peerDependencies":{"cypress":"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-intercept-search_1.0.2_1746779593980_0.9451130049300422","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"cypress-intercept-search","version":"1.0.3","keywords":["cypress","cypress-plugin","intercept","search","testing","assertion"],"author":{"name":"Lasitha Wijenayake"},"license":"MIT","_id":"cypress-intercept-search@1.0.3","maintainers":[{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"}],"homepage":"https://github.com/lasithdilshan20/cypress-intercept-search#readme","bugs":{"url":"https://github.com/lasithdilshan20/cypress-intercept-search/issues"},"dist":{"shasum":"89c1c0ec510fd1acc5190dc0bb4792266e59d28a","tarball":"https://registry.npmjs.org/cypress-intercept-search/-/cypress-intercept-search-1.0.3.tgz","fileCount":9,"integrity":"sha512-MN8d90alumqA7KyY0K8+/qorE1E2jMIbbyiHdRDjrFNM7fwU/22Usdp8IsJnlh/FjsPRU7f9BpOqxBwL41iMQA==","signatures":[{"sig":"MEUCIGrbXzuLlGEa2mLsBA6lDnxuvXPDxk5mBk89fCAwJzuzAiEAxLBeCbj4UJYOooZpzjoQVTH7sWrrAmx65svykqkdF0o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17365},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"3561e72abdcb6f0f239025289b63f45580802c90","scripts":{"dev":"tsc -w & node server.js","build":"tsc","start":"node server.js","cypress:run":"cypress run","test:server":"node server.js","cypress:open":"cypress open"},"_npmUser":{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"},"repository":{"url":"git+https://github.com/lasithdilshan20/cypress-intercept-search.git","type":"git"},"_npmVersion":"10.8.2","description":"A Cypress plugin to recursively search your intercepted requests/responses by key/value","directories":{},"_nodeVersion":"20.16.0","dependencies":{"cors":"^2.8.5","lodash":"^4.17.21","express":"^4.18.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.0.0","@types/cors":"^2.8.13","@types/node":"^18.15.0","@types/express":"^4.17.17"},"peerDependencies":{"cypress":"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-intercept-search_1.0.3_1746780604443_0.21096193871315205","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"cypress-intercept-search","version":"1.0.4","keywords":["cypress","cypress-plugin","intercept","search","testing","assertion"],"author":{"name":"Lasitha Wijenayake"},"license":"MIT","_id":"cypress-intercept-search@1.0.4","maintainers":[{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"}],"homepage":"https://github.com/lasithdilshan20/cypress-intercept-search#readme","bugs":{"url":"https://github.com/lasithdilshan20/cypress-intercept-search/issues"},"dist":{"shasum":"6a360298c698d4ab6d48ddc0ff0816d9671bebcd","tarball":"https://registry.npmjs.org/cypress-intercept-search/-/cypress-intercept-search-1.0.4.tgz","fileCount":9,"integrity":"sha512-d7Mj/d5xzdE3ysChFdUxaLSyQeHX/5LUKO5P1w8xxmpvl3ukZL8m84/F4jPEpqIiyEETH31VCi5jvXLLqzY9Kw==","signatures":[{"sig":"MEUCIC5yW7XPTEFvzLptszssD6o6+pbIUuQjlx7R4EtXG+taAiEA38dXMLFaYhdWoW7DFXcNuGvD5VS5dvjISNavKp/fRZs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18359},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"9290baca0d336bc93f1824738c42a79b65a079cc","scripts":{"dev":"tsc -w & node server.js","build":"tsc","start":"node server.js","cypress:run":"cypress run","test:server":"node server.js","cypress:open":"cypress open"},"_npmUser":{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"},"repository":{"url":"git+https://github.com/lasithdilshan20/cypress-intercept-search.git","type":"git"},"_npmVersion":"10.8.2","description":"A Cypress plugin to recursively search your intercepted requests/responses by key/value","directories":{},"_nodeVersion":"20.16.0","dependencies":{"cors":"^2.8.5","lodash":"^4.17.21","express":"^4.18.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.0.0","@types/cors":"^2.8.13","@types/node":"^18.15.0","@types/express":"^4.17.17"},"peerDependencies":{"cypress":"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cypress-intercept-search_1.0.4_1746781873111_0.15672837525410865","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"cypress-intercept-search","version":"1.0.5","description":"A Cypress plugin to recursively search your intercepted requests/responses by key/value","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","start":"node server.js","dev":"tsc -w & node server.js","test:server":"node server.js","cypress:open":"cypress open","cypress:run":"cypress run"},"keywords":["cypress","cypress-plugin","intercept","search","testing","assertion"],"author":{"name":"Lasitha Wijenayake"},"license":"MIT","dependencies":{"lodash":"^4.17.21","cors":"^2.8.5","express":"^4.18.2"},"peerDependencies":{"cypress":"^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0"},"devDependencies":{"typescript":"^4.0.0","@types/express":"^4.17.17","@types/cors":"^2.8.13","@types/node":"^18.15.0"},"repository":{"type":"git","url":"git+https://github.com/lasithdilshan20/cypress-intercept-search.git"},"bugs":{"url":"https://github.com/lasithdilshan20/cypress-intercept-search/issues"},"homepage":"https://github.com/lasithdilshan20/cypress-intercept-search#readme","_id":"cypress-intercept-search@1.0.5","gitHead":"4c4ff274e5c61f80db80923e10a4c17b2afdae4b","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-ZGYvxeGBsxelf2Gfjbnwxa5K+E3nTiuAhgKy5hzIT2NXHF2XmyvhoCR69aRSZMLivcrStk1OjENO6Foe0NSoJw==","shasum":"5013d2cc53631bcc685368b12e6ff3d2b259de18","tarball":"https://registry.npmjs.org/cypress-intercept-search/-/cypress-intercept-search-1.0.5.tgz","fileCount":9,"unpackedSize":17892,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD9JVh5CBnas5KRSEHz+EXvdtHXwSnu6oiEHLbK/Hs+qQIhANK/+vN33XHwe1UDsQQz4W9PmMcbUlGGOCDG89PviV6P"}]},"_npmUser":{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"},"directories":{},"maintainers":[{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cypress-intercept-search_1.0.5_1764754467507_0.657650491385219"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-09T08:14:44.789Z","modified":"2025-12-03T09:34:27.929Z","1.0.0":"2025-05-09T08:14:45.088Z","1.0.1":"2025-05-09T08:22:49.018Z","1.0.2":"2025-05-09T08:33:14.146Z","1.0.3":"2025-05-09T08:50:04.604Z","1.0.4":"2025-05-09T09:11:13.332Z","1.0.5":"2025-12-03T09:34:27.730Z"},"bugs":{"url":"https://github.com/lasithdilshan20/cypress-intercept-search/issues"},"author":{"name":"Lasitha Wijenayake"},"license":"MIT","homepage":"https://github.com/lasithdilshan20/cypress-intercept-search#readme","keywords":["cypress","cypress-plugin","intercept","search","testing","assertion"],"repository":{"type":"git","url":"git+https://github.com/lasithdilshan20/cypress-intercept-search.git"},"description":"A Cypress plugin to recursively search your intercepted requests/responses by key/value","maintainers":[{"name":"lasithdilshan20","email":"lasithdilshan20@gmail.com"}],"readme":"# cypress-intercept-search\r\n\r\nA Cypress plugin that adds a custom command to search and assert values in intercepted requests and responses.\r\n\r\n[![GitHub Repository](https://img.shields.io/badge/GitHub-Repository-blue.svg)](https://github.com/lasithdilshan20/cypress-intercept-search)\r\n[![Author](https://img.shields.io/badge/Author-Lasith%20Dilshan-orange.svg)](https://github.com/lasithdilshan20)\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install --save-dev cypress-intercept-search\r\n```\r\n\r\nIf you encounter peer dependency issues with Cypress versions, you can use the `--legacy-peer-deps` flag to bypass these checks:\r\n\r\n```bash\r\nnpm install --save-dev cypress-intercept-search --legacy-peer-deps\r\n```\r\n\r\nThis is useful when you're using a newer version of Cypress that isn't explicitly listed in the plugin's peer dependencies, but you know it should work fine.\r\n\r\n## Setup\r\n\r\nAdd the plugin to your Cypress configuration:\r\n\r\n### For Cypress 10+ (cypress.config.js)\r\n\r\n```javascript\r\nconst { defineConfig } = require('cypress');\r\nconst interceptSearchPlugin = require('cypress-intercept-search');\r\n\r\nmodule.exports = defineConfig({\r\n  e2e: {\r\n    setupNodeEvents(on, config) {\r\n      return interceptSearchPlugin(on, config);\r\n    },\r\n  },\r\n});\r\n```\r\n\r\n### For TypeScript Users (cypress.config.ts)\r\n\r\n```typescript\r\n// cypress.config.ts\r\nimport { defineConfig } from 'cypress'\r\nimport interceptSearchPlugin from 'cypress-intercept-search'\r\n\r\nexport default defineConfig({\r\n  e2e: {\r\n    // any other e2e options you need, e.g. baseUrl, specPattern, etc.\r\n    setupNodeEvents(on, config) {\r\n      // hook in our plugin\r\n      return interceptSearchPlugin(on, config)\r\n    },\r\n  },\r\n})\r\n```\r\n\r\n### Using with Other Plugins\r\n\r\nIf you're using multiple plugins, you can integrate them like this:\r\n\r\n```javascript\r\n// In your cypress.config.js or cypress.config.ts\r\n{\r\n  e2e: {\r\n    setupNodeEvents(on, config) {\r\n      mochawesomeReporter(on);\r\n      registerRabbitMqTasks(on);\r\n      interceptSearchPlugin(on, config);\r\n      return config;\r\n    },\r\n  }\r\n}\r\n```\r\n\r\n### For Cypress < 10 (cypress/plugins/index.js)\r\n\r\n```javascript\r\nconst interceptSearchPlugin = require('cypress-intercept-search');\r\n\r\nmodule.exports = (on, config) => {\r\n  return interceptSearchPlugin(on, config);\r\n};\r\n```\r\n\r\n### Import Commands\r\n\r\nIn your support file (e.g., cypress/support/e2e.js or cypress/support/commands.js):\r\n\r\n```javascript\r\nimport 'cypress-intercept-search';\r\n```\r\n\r\nFor TypeScript users (e.g., cypress/support/e2e.ts):\r\n\r\n```typescript\r\nimport { registerSearchCommand } from 'cypress-intercept-search/dist/commands';\r\nregisterSearchCommand();\r\n```\r\n\r\n## Usage\r\n\r\nThe plugin adds a `.search()` command that can be chained after `cy.wait()` to search for specific keys and values in intercepted requests and responses.\r\n\r\n### Basic Usage\r\n\r\n```javascript\r\n// Search for a key in an intercepted request\r\ncy.intercept('POST', '/api/savePlay').as('savePlay');\r\ncy.wait('@savePlay')\r\n  .search('playerID')\r\n  .should('exist');\r\n\r\n// Search for a specific key-value pair\r\ncy.wait('@savePlay')\r\n  .search('playerID', '00000000-0000-0000-0000-000000000000')\r\n  .should('exist');\r\n```\r\n\r\n### Advanced Usage\r\n\r\n```javascript\r\n// Search in multiple interceptions\r\ncy.wait(['@savePlay', '@getPlayers'])\r\n  .search('nameRef', 'Doe, CyJon')\r\n  .should('have.length', 1);\r\n\r\n// Access the search results for further assertions\r\ncy.wait('@savePlay')\r\n  .search('players')\r\n  .then((results) => {\r\n    // results is an array of found matches\r\n    expect(results[0].location).to.equal('request'); // 'request' or 'response'\r\n    expect(results[0].value).to.be.an('object');\r\n    expect(results[0].fullPath).to.equal('interception[0].request.body.players');\r\n  });\r\n```\r\n\r\n## API Reference\r\n\r\n### .search(key, [value])\r\n\r\nSearches for a key (and optionally a specific value) in the intercepted request and response.\r\n\r\n#### Parameters\r\n\r\n- `key` (String): The key to search for in the interception object.\r\n- `value` (Any, optional): The specific value to match. If not provided, it will match any value for the key.\r\n\r\n#### Returns\r\n\r\nA Cypress chainable containing an array of search results. Each result object contains:\r\n\r\n- `index` (Number): The index of the interception in the array (useful when searching in multiple interceptions).\r\n- `location` (String): Either 'request' or 'response', indicating where the match was found.\r\n- `key` (String): The matched key.\r\n- `value` (Any): The value associated with the key.\r\n- `path` (Array): An array representing the path to the matched key.\r\n- `fullPath` (String): A string representation of the full path to the matched key.\r\n\r\n## Examples\r\n\r\n### Example 1: Searching in Nested API Response\r\n\r\n```javascript\r\n// Set up the intercept\r\ncy.intercept('GET', '/api/nested').as('getNested');\r\n\r\n// Visit the page and trigger the request\r\ncy.visit('/');\r\ncy.get('#btn-nested').click();\r\n\r\n// Wait for the request and search for the name property\r\ncy.wait('@getNested')\r\n  .search('name', 'Alice')\r\n  .should('exist')\r\n  .then((results) => {\r\n    // Verify the search results contain the expected data\r\n    expect(results[0].location).to.equal('response.body');\r\n    expect(results[0].value).to.equal('Alice');\r\n  });\r\n```\r\n\r\n### Example 2: Searching in Echo API Response\r\n\r\n```javascript\r\n// Set up the intercept\r\ncy.intercept('GET', '/api/echo*').as('getEcho');\r\n\r\n// Visit the page and trigger the request\r\ncy.visit('/');\r\ncy.get('#btn-echo').click();\r\n\r\n// Wait for the request and search for the foo property\r\ncy.wait('@getEcho')\r\n  .search('foo', 'hello')\r\n  .should('exist')\r\n  .then((results) => {\r\n    // There should be multiple matches for 'foo' in different locations\r\n    expect(results.length).to.be.greaterThan(1);\r\n  });\r\n```\r\n\r\n### Example 3: Searching in Submit API Request and Response\r\n\r\n```javascript\r\n// Set up the intercept\r\ncy.intercept('POST', '/api/submit').as('postSubmit');\r\n\r\n// Visit the page and trigger the request\r\ncy.visit('/');\r\ncy.get('#btn-submit').click();\r\n\r\n// Wait for the request and search for the gamma property\r\ncy.wait('@postSubmit')\r\n  .search('gamma')\r\n  .should('exist')\r\n  .then((results) => {\r\n    expect(results[0].value).to.equal('G');\r\n  });\r\n```\r\n\r\n## Running the Examples\r\n\r\nThis project includes a test server and example tests to demonstrate the plugin's functionality.\r\n\r\n### Starting the Test Server\r\n\r\n```bash\r\nnpm run start\r\n```\r\n\r\n### Running the Tests\r\n\r\n```bash\r\n# Open Cypress Test Runner\r\nnpm run cypress:open\r\n\r\n# Run tests headlessly\r\nnpm run cypress:run\r\n```\r\n\r\nThe example tests demonstrate searching for values in different parts of HTTP requests and responses:\r\n\r\n1. Searching for a property in a nested API response\r\n2. Searching for query parameters in request and response\r\n3. Searching for properties in request body and response body\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"README.md"}