{"_id":"coveo-search-ui-tests","_rev":"67-843d1d317157f28c95c45f409a3e7b8a","name":"coveo-search-ui-tests","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.2":{"name":"coveo-search-ui-tests","version":"0.0.2","keywords":["coveo-search","typescript","javascript","coveo","coveo-search-ui","jsui"],"author":{"name":"Coveo"},"license":"Apache-2.0","_id":"coveo-search-ui-tests@0.0.2","maintainers":[{"name":"francoislg","email":"francois.lguillemette@gmail.com"}],"homepage":"https://github.com/francoislg/search-ui-tests#readme","bugs":{"url":"https://github.com/francoislg/search-ui-tests/issues"},"dist":{"shasum":"393918d81d5e13ad3a2448693f854e3014453c5f","tarball":"https://registry.npmjs.org/coveo-search-ui-tests/-/coveo-search-ui-tests-0.0.2.tgz","integrity":"sha512-a7pmIr9vgr/hqGyZtl18DrnKev+q5t1bbTeUlLZhnsTyqPZhFxg6KdMmw7k7pV3slDI1AAgRuqKIlBGKveC1Kg==","signatures":[{"sig":"MEUCIQCX5BvK77GYe3iKEvvqrMhKQdrwmQZHnFrJTOzBD0dJxgIgMRIm1z8yX1ERp36gxQrssr/4Ke5f8VcpnAKbuq5LtZA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./bin/js/CoveoJsSearchTests.js","files":["bin","lib","src"],"types":"./bin/ts/coveo-search-ui-tests.d.ts","gitHead":"76355853e66655af63aae15bda145df39deb617d","scripts":{"dts":"node declaration.js","build":"webpack","deploy":"npm publish --registry http://npm.corp.coveo.com","precommit":"lint-staged","prepublish":"npm run build && npm run dts","deployPatch":"npm version patch && npm run deploy"},"_npmUser":{"name":"francoislg","email":"francois.lguillemette@gmail.com"},"repository":{"url":"git+https://github.com/francoislg/search-ui-tests.git","type":"git"},"_npmVersion":"5.5.1","description":"Testing framework for the Coveo JavaScript Search Framework","directories":{},"lint-staged":{"*.{js,ts,json,.scss}":["prettier --write","git add"]},"_nodeVersion":"6.11.0","dependencies":{"jquery":"^3.2.1","underscore":"^1.8.3"},"devDependencies":{"colors":"^1.1.2","webpack":"^3.8.1","ts-loader":"^3.0.2","typescript":"^2.5.3","lint-staged":"^4.2.3","npm-cli-login":"0.0.10","@types/jasmine":"^2.6.0","exports-loader":"^0.6.4","coveo-search-ui":"^2.3477.1","dts-webpack-plugin":"0.0.9","webpack-fail-plugin":"^2.0.0","child-process-promise":"^2.2.1"},"peerDependencies":{"coveo-search-ui":"2.3477.x"},"_npmOperationalInternal":{"tmp":"tmp/coveo-search-ui-tests-0.0.2.tgz_1508504950268_0.8708463609218597","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"coveo-search-ui-tests","version":"0.0.3","keywords":["coveo-search","typescript","javascript","coveo","coveo-search-ui","jsui"],"author":{"name":"Coveo"},"license":"Apache-2.0","_id":"coveo-search-ui-tests@0.0.3","maintainers":[{"name":"coveo","email":"sandbox_JSUI@coveo.com"},{"name":"francoislg","email":"francois.lguillemette@gmail.com"}],"homepage":"https://github.com/francoislg/search-ui-tests#readme","bugs":{"url":"https://github.com/francoislg/search-ui-tests/issues"},"dist":{"shasum":"7e908336260a0261e68ecd50ab44a655683ae8d4","tarball":"https://registry.npmjs.org/coveo-search-ui-tests/-/coveo-search-ui-tests-0.0.3.tgz","integrity":"sha512-MTXxvDfB1vPDlmoYlb4HjosUGc9P2Xr96HeJvtuOpHfhWqi35D3w9tRSE95vr99fB+5JHHUIgEuTECPhZr3OEw==","signatures":[{"sig":"MEYCIQDNw5sHAS0DL8KBSZ9aDAqXF2AJhzKMNN50/hEDE2ixtgIhAP9uhYLoEbhmdsa5p0G8/ptTItzVcNySm1bg8KoxKqQ+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./bin/js/CoveoJsSearchTests.js","files":["bin","lib","src"],"types":"./bin/ts/coveo-search-ui-tests.d.ts","gitHead":"1d06e2c27a6bd51f6e889ecddb505771d46786ad","scripts":{"dts":"node declaration.js","build":"webpack","precommit":"lint-staged","prepublish":"npm run build && npm run dts"},"_npmUser":{"name":"francoislg","email":"francois.lguillemette@gmail.com"},"repository":{"url":"git+https://github.com/francoislg/search-ui-tests.git","type":"git"},"_npmVersion":"5.5.1","description":"Testing framework for the Coveo JavaScript Search Framework","directories":{},"lint-staged":{"*.{js,ts,json,.scss}":["prettier --write","git add"]},"_nodeVersion":"6.11.0","dependencies":{"jquery":"^3.2.1","underscore":"^1.8.3"},"devDependencies":{"karma":"^1.7.1","colors":"^1.1.2","webpack":"^3.8.1","ts-loader":"^3.0.2","typescript":"^2.5.3","lint-staged":"^4.2.3","jasmine-core":"^2.8.0","karma-jasmine":"^1.1.0","karma-webpack":"^2.0.5","npm-cli-login":"0.0.10","@types/jasmine":"^2.6.0","exports-loader":"^0.6.4","coveo-search-ui":"^2.3477.1","dts-webpack-plugin":"0.0.9","karma-spec-reporter":"0.0.31","webpack-fail-plugin":"^2.0.0","child-process-promise":"^2.2.1","karma-phantomjs-launcher":"^1.0.4","istanbul-instrumenter-loader":"^3.0.0","karma-coverage-istanbul-reporter":"^1.3.0"},"peerDependencies":{"coveo-search-ui":"2.3477.x"},"_npmOperationalInternal":{"tmp":"tmp/coveo-search-ui-tests-0.0.3.tgz_1511813508084_0.668984086252749","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"coveo-search-ui-tests","version":"0.0.4","keywords":["coveo-search","typescript","javascript","coveo","coveo-search-ui","jsui"],"author":{"name":"Coveo"},"license":"Apache-2.0","_id":"coveo-search-ui-tests@0.0.4","maintainers":[{"name":"coveo","email":"sandbox_JSUI@coveo.com"},{"name":"francoislg","email":"francois.lguillemette@gmail.com"}],"homepage":"https://github.com/francoislg/search-ui-tests#readme","bugs":{"url":"https://github.com/francoislg/search-ui-tests/issues"},"dist":{"shasum":"1e033a51dfce238b674455bec98577fc1a230d7c","tarball":"https://registry.npmjs.org/coveo-search-ui-tests/-/coveo-search-ui-tests-0.0.4.tgz","integrity":"sha512-yVQfKFB17Te+RcYvUdV7KRSJG+OGmuH3DHmu4a3Q/HFYxW+NaeGNs99UdMFDvGxo9VgBZED2oKiJEtEJXsw/zQ==","signatures":[{"sig":"MEQCIBaIbcrnVa1wxIJKzXxEZuHVUnl2Xaw0o8QOCyxndgwvAiB4l9ehrUnPzPeljKXFRdnxkWF4psXYlJIHMukl5SD03Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./bin/js/CoveoJsSearchTests.js","files":["bin","lib","src"],"types":"./bin/ts/coveo-search-ui-tests.d.ts","gitHead":"1d06e2c27a6bd51f6e889ecddb505771d46786ad","scripts":{"dts":"node declaration.js","build":"webpack","precommit":"lint-staged","prepublish":"npm run build && npm run dts"},"_npmUser":{"name":"francoislg","email":"francois.lguillemette@gmail.com"},"repository":{"url":"git+https://github.com/francoislg/search-ui-tests.git","type":"git"},"_npmVersion":"5.5.1","description":"Testing framework for the Coveo JavaScript Search Framework","directories":{},"lint-staged":{"*.{js,ts,json,.scss}":["prettier --write","git add"]},"_nodeVersion":"6.11.0","dependencies":{"jquery":"^3.2.1","underscore":"^1.8.3"},"devDependencies":{"karma":"^1.7.1","colors":"^1.1.2","webpack":"^3.8.1","ts-loader":"^3.0.2","typescript":"^2.5.3","lint-staged":"^4.2.3","jasmine-core":"^2.8.0","karma-jasmine":"^1.1.0","karma-webpack":"^2.0.5","npm-cli-login":"0.0.10","@types/jasmine":"^2.6.0","exports-loader":"^0.6.4","coveo-search-ui":"^2.3477.1","dts-webpack-plugin":"0.0.9","karma-spec-reporter":"0.0.31","webpack-fail-plugin":"^2.0.0","child-process-promise":"^2.2.1","karma-phantomjs-launcher":"^1.0.4","istanbul-instrumenter-loader":"^3.0.0","karma-coverage-istanbul-reporter":"^1.3.0"},"peerDependencies":{"coveo-search-ui":"2.3477.x"},"_npmOperationalInternal":{"tmp":"tmp/coveo-search-ui-tests-0.0.4.tgz_1511813908945_0.5822273255325854","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"coveo-search-ui-tests","version":"0.0.5","keywords":["coveo-search","typescript","javascript","coveo","coveo-search-ui","jsui"],"author":{"name":"Coveo"},"license":"Apache-2.0","_id":"coveo-search-ui-tests@0.0.5","maintainers":[{"name":"sbelzile","email":"sbelzile@coveo.com"},{"name":"coveo","email":"sandbox_JSUI@coveo.com"},{"name":"francoislg","email":"francois.lguillemette@gmail.com"}],"homepage":"https://github.com/francoislg/search-ui-tests#readme","bugs":{"url":"https://github.com/francoislg/search-ui-tests/issues"},"dist":{"shasum":"1ebc9db40ee9c7b03e9e68f465e829260e3662e0","tarball":"https://registry.npmjs.org/coveo-search-ui-tests/-/coveo-search-ui-tests-0.0.5.tgz","integrity":"sha512-cMkihTZYbZneZmyUDswdt4Yy/Uu/XgzNx1+73EopaAQ5YDBKE08ALob2gRdN6vIldVUcJKfEJrEU6IJYTUxZcA==","signatures":[{"sig":"MEYCIQCdi5+hQzTBaOa+rB0LTzQz4KSCcRVTitUdNcSCkqOM4gIhAOt9cUlA0dZ7yHqdali3UBVrDp/zWg+x6g5SLw0sTfE8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./bin/js/CoveoJsSearchTests.js","_from":".","files":["bin","lib","src"],"types":"./bin/ts/coveo-search-ui-tests.d.ts","_shasum":"1ebc9db40ee9c7b03e9e68f465e829260e3662e0","gitHead":"952ca9f777f838e9a8ea56950f9ec5ebe6839e14","scripts":{"dts":"node declaration.js","build":"webpack","deploy":"npm publish --registry http://npm.corp.coveo.com","precommit":"lint-staged","prepublish":"npm run build && npm run dts","deployPatch":"npm version patch && npm run deploy"},"_npmUser":{"name":"sbelzile","email":"sbelzile@coveo.com"},"repository":{"url":"git+https://github.com/francoislg/search-ui-tests.git","type":"git"},"_npmVersion":"3.8.6","description":"Testing framework for the Coveo JavaScript Search Framework","directories":{},"lint-staged":{"*.{js,ts,json,.scss}":["prettier --write","git add"]},"_nodeVersion":"6.10.3","dependencies":{"jquery":"^3.2.1","underscore":"^1.8.3"},"devDependencies":{"colors":"^1.1.2","webpack":"^3.8.1","ts-loader":"^3.0.2","typescript":"^2.5.3","lint-staged":"^4.2.3","npm-cli-login":"0.0.10","@types/jasmine":"^2.6.0","exports-loader":"^0.6.4","coveo-search-ui":"^2.3477.1","dts-webpack-plugin":"0.0.9","webpack-fail-plugin":"^2.0.0","child-process-promise":"^2.2.1"},"peerDependencies":{"coveo-search-ui":"^2.3477.1"},"_npmOperationalInternal":{"tmp":"tmp/coveo-search-ui-tests-0.0.5.tgz_1513885237932_0.15029849228449166","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"coveo-search-ui-tests","version":"0.0.6","keywords":["coveo-search","typescript","javascript","coveo","coveo-search-ui","jsui"],"author":{"name":"Coveo"},"license":"Apache-2.0","_id":"coveo-search-ui-tests@0.0.6","maintainers":[{"name":"coveo","email":"sandbox_JSUI@coveo.com"},{"name":"francoislg","email":"francois.lguillemette@gmail.com"},{"name":"sbelzile","email":"sbelzile@coveo.com"}],"homepage":"https://github.com/coveo/search-ui-tests#readme","bugs":{"url":"https://github.com/coveo/search-ui-tests/issues"},"dist":{"shasum":"47e192e4774ec6c46e155ca2e5c11dc12cff0cd3","tarball":"https://registry.npmjs.org/coveo-search-ui-tests/-/coveo-search-ui-tests-0.0.6.tgz","fileCount":61,"integrity":"sha512-KgMVSDLpKRHsgahkR3y2RMzQ6eSFll5bOgjcRggHIxG4H/n5SrDB6crUtvmsiU6B28b4RdzMbtzxRuWLQnZZLw==","signatures":[{"sig":"MEQCIEqfkaCRo3mLWezrFX00lksrEuBy6tyGPbqC5ujxNSPNAiAVccOhcmR0+qQxI+9r39RXTgtXnNLFTycbgppj3QglKA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1171056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdQZKqCRA9TVsSAnZWagAAh64P/i5kT7aVJZ1+9IyInpMm\nj+dd/O3P1fo3DsfWF5ZxWeTPqBEVWaMLBubmwNuA1izieQ46Uk4qZZKguvUu\nOreft7ZiQTP2/bKUQGLfJIkdGUBU1OEX6lHV5bUGBXxBpR/1AAnCrxdAeSOH\n0GQtO01BYHi+o6sfZpa/SX1QRdSd8JmZA8FpoTWYt932ODhQ+0YNF3x3SxqH\nl4xYawXeEMn/6v72RD/ReVf08IsCC3RxuKanPbAz3tL8h08NKvxnSPxtN2hP\nT3V4UXe0dA8qGR1xrY5wHGwhBLvPTXpN68tKJ+beSdUBfkpFYimsRWiTtNfU\nFhG1g+DdBBvem8SehLdZ+FLLw3jGKNgaVkYopODotb0EXe3LWUIW9MJ2sKQK\n8gn9HCmkJ9eDFwAyRIJFME30Rx3sJwa6I8+spxpaaqkhtjfqNGtB+EsV5Icb\ne6zyQnay6eXBAMjtYpcSrlATtKBiwZg8ptuccSa80FbJpt+ygOLeUhiGGcSm\nJsq7k7R1KpLkiHhYm6/SUn5CV4aFGTToR1BHHqABsrV5nUQ9g2f+tzssfdzb\nuYltRlnHypPEa+5dfDi0chbUdwaTdlXKQXvUrxjpWV0n+SPj8+2eDnohoOF+\n8Vb8tcUjNKWnySS4q4Axf+5y+G09rHOCNkDCgzjP3EQG+UuSgUwx4WEZWkbc\n4Bj/\r\n=jY37\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./bin/js/CoveoJsSearchTests.js","types":"./bin/ts/coveo-search-ui-tests.d.ts","gitHead":"b0b79ac891b9791d6050f3b154331fa80fadb667","scripts":{"dts":"node declaration.js","build":"webpack","deploy":"npm publish","precommit":"lint-staged","prepublish":"npm run build && npm run dts","deployPatch":"npm version patch && npm run deploy"},"_npmUser":{"name":"francoislg","email":"francois.lguillemette@gmail.com"},"repository":{"url":"git+https://github.com/coveo/search-ui-tests.git","type":"git"},"_npmVersion":"6.9.0","description":"Testing framework for the Coveo JavaScript Search Framework","directories":{},"lint-staged":{"*.{js,ts,json,.scss}":["prettier --write","git add"]},"_nodeVersion":"12.1.0","dependencies":{"underscore":"^1.8.3"},"_hasShrinkwrap":false,"devDependencies":{"colors":"^1.2.1","jquery":"^3.2.1","webpack":"^4.1.1","ts-loader":"^4.0.1","typescript":"^3.5.3","lint-staged":"^7.0.0","webpack-cli":"^2.0.11","npm-cli-login":"^0.0.10","@types/jasmine":"^2.8.6","exports-loader":"^0.7.0","coveo-search-ui":"^2.6459.9","dts-webpack-plugin":"^0.0.9","child-process-promise":"^2.2.1"},"peerDependencies":{"coveo-search-ui":"^2.6459.9"},"_npmOperationalInternal":{"tmp":"tmp/coveo-search-ui-tests_0.0.6_1564578472714_0.38757039235321744","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"coveo-search-ui-tests","version":"0.0.7","keywords":["coveo-search","typescript","javascript","coveo","coveo-search-ui","jsui"],"author":{"name":"Coveo"},"license":"Apache-2.0","_id":"coveo-search-ui-tests@0.0.7","maintainers":[{"name":"coveo","email":"sandbox_JSUI@coveo.com"},{"name":"francoislg","email":"francois.lguillemette@gmail.com"},{"name":"sbelzile","email":"sbelzile@coveo.com"}],"homepage":"https://github.com/coveo/search-ui-tests#readme","bugs":{"url":"https://github.com/coveo/search-ui-tests/issues"},"dist":{"shasum":"cdd52dbecddb684bdac99b7b43c86803a4910da5","tarball":"https://registry.npmjs.org/coveo-search-ui-tests/-/coveo-search-ui-tests-0.0.7.tgz","fileCount":61,"integrity":"sha512-B/F8fFV0J6r9ySbhCrfTxMy7w08T9CUV2mh5Ad+eifNP7f+EVztvfMm671MTA+UGdUb6KJJ1N8+i9AmG92UuJQ==","signatures":[{"sig":"MEUCIQC3OdfrE8/vLXwqA5hvOvk4QtoeASHs/VjHFjve1qeOKgIgTVZj1Z7r19EDJGzboy0JUauuhWRIYQl8JU3KHVt7Iqs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1171017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd4RpSCRA9TVsSAnZWagAASEIP/04ry7suBHvLkYaEkqCw\nAbxYSTdsY8uVmnAHpb3lFcVo1PZ1/NCOaTOf1vJ07XDUVpq79TvqT3lYQhCX\nHTPSCmY7t1xX742fUACLNmr6I6EgnMnMbSOr8+ErEu3ioD/P7t3EJCyjoACk\nC2zyxaiO8QaPZw/FHRIKBVQMC/RkvDPKF9DbxHAQc3CZEQWdsbsuRFDP43Y6\nIQ2weszD6sMQgYY97VyYzGzLVfIPr0p0d0/tgZWd+u6Btrc3LdJbsGahe48c\nMiG3IvLbC6omTUfA54zTJnSUymILxk/EvI/JMubQr3Uz/iM3jqVxAQi/U9J8\nS7wHF+tq4Rc6SMBD1Ns5rF2nyWMIKpQs5WLafxBLyd6flqhf8P3s7W4rBJmz\nRh4vtZ8l1R0SxBEP6/jyEOIc7fnhaFeEtuftDnzLepsHqIZ6PUckl0cw6VvC\n+7JY9aoYZyhNmWoiR4vqG0bppVmCDkivsZggm/rIQg+XftQ91iEtmkaBHziZ\nPIV+l5gYTwLpPw8Gvedxrixyay7l/HTeyUXfxGEInUhyqd37gz1JoIspsijE\ng8tCcn+cfYYdRHKHJhZ49gTTJ8QXn8jfB4PRCUkwjxJhndfl7WYrvH+eIqkU\n05jlg/G4vKojgcwcfR3C/3aCq6rFkm1bD6sdgW2RWHKxZRgD7jMX0OA3L93w\nP+Jo\r\n=qhx7\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./bin/js/CoveoJsSearchTests.js","types":"./bin/ts/coveo-search-ui-tests.d.ts","gitHead":"e83bbd120da827fd35c3a8b66ad91d84c5e0f97f","scripts":{"dts":"node declaration.js","build":"webpack","deploy":"npm publish","precommit":"lint-staged","prepublish":"npm run build && npm run dts","deployPatch":"npm version patch && npm run deploy"},"_npmUser":{"name":"francoislg","email":"francois.lguillemette@gmail.com"},"repository":{"url":"git+https://github.com/coveo/search-ui-tests.git","type":"git"},"_npmVersion":"6.13.1","description":"Testing framework for the Coveo JavaScript Search Framework","directories":{},"lint-staged":{"*.{js,ts,json,.scss}":["prettier --write","git add"]},"_nodeVersion":"12.1.0","dependencies":{"underscore":"^1.8.3"},"_hasShrinkwrap":false,"devDependencies":{"colors":"^1.2.1","jquery":"^3.2.1","webpack":"^4.1.1","ts-loader":"^4.0.1","typescript":"^3.5.3","lint-staged":"^7.0.0","webpack-cli":"^2.0.11","npm-cli-login":"^0.0.10","@types/jasmine":"^2.8.6","exports-loader":"^0.7.0","coveo-search-ui":"^2.6459.9","dts-webpack-plugin":"^0.0.9","child-process-promise":"^2.2.1"},"peerDependencies":{"coveo-search-ui":"^2.6459.9"},"_npmOperationalInternal":{"tmp":"tmp/coveo-search-ui-tests_0.0.7_1575033426247_0.1869963270672692","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-10-20T13:09:11.501Z","modified":"2026-05-13T17:39:25.485Z","0.0.2":"2017-10-20T13:09:11.501Z","0.0.3":"2017-11-27T20:11:49.277Z","0.0.4":"2017-11-27T20:18:29.051Z","0.0.5":"2017-12-21T19:40:38.018Z","0.0.6":"2019-07-31T13:07:52.930Z","0.0.7":"2019-11-29T13:17:06.431Z"},"bugs":{"url":"https://github.com/coveo/search-ui-tests/issues"},"author":{"name":"Coveo"},"license":"Apache-2.0","homepage":"https://github.com/coveo/search-ui-tests#readme","keywords":["coveo-search","typescript","javascript","coveo","coveo-search-ui","jsui"],"repository":{"url":"git+https://github.com/coveo/search-ui-tests.git","type":"git"},"description":"Testing framework for the Coveo JavaScript Search Framework","maintainers":[{"email":"oa-npmcoveo@oacvo.com","name":"oa-npmcoveo"}],"readme":"# search-ui-tests\r\n\r\nTesting framework for the Coveo JavaScript Search Framework\r\n\r\n## Usage\r\n\r\nInclude the compiled `bin/js/CoveoJsSearchTests.js` file in your test configuration.\r\n\r\n## TypeScript\r\n\r\nYou can import references from the component and then use them in your tests.\r\n\r\n### Example\r\n\r\nIn this example, `MyCustomComponent` is a simple custom component that registers a new event handler on the `onBuildingQuery` event to change the pipeline.\r\n\r\n```typescript\r\n// MyCustomComponent.ts\r\nimport {\r\n    Component,\r\n    ComponentOptions,\r\n    IComponentBindings,\r\n    QueryEvents,\r\n    IBuildingQueryEventArgs\r\n} from \"coveo-search-ui\";\r\n\r\nexport class MyCustomComponent extends Component {\r\n    static ID = \"MyCustomComponent\";\r\n\r\n    static options: IMyCustomComponentOptions = {} \r\n\r\n    constructor(public element: HTMLElement, public options: IMyCustomComponentOptions, public bindings: IComponentBindings) {\r\n        super(element, MyCustomComponent.ID, bindings);\r\n        this.options = ComponentOptions.initComponentOptions(element, MyCustomComponent, options);\r\n\r\n        this.bind.onRootElement(QueryEvents.buildingQuery, (args: IBuildingQueryEventArgs) => args.queryBuilder.pipeline = \"a new pipeline\");\r\n    }\r\n}\r\n```\r\n\r\nAnd here is the test to validate this behavior.\r\n\r\n```typescript\r\n// MyCustomComponent.spec.ts\r\nimport { MyCustomComponent } from \"./MyCustomComponent\";\r\nimport { Mock, Simulate } from \"coveo-search-ui-tests\";\r\n\r\ndescribe(\"MyCustomComponent\", () => {\r\n    let component: Mock.IBasicComponentSetup<MyCustomComponent>;\r\n\r\n    beforeEach(() => {\r\n        // Creates the component with all the set up required to run properly in a fake Coveo Search Interface environment.\r\n        component = Mock.basicComponentSetup<MyCustomComponent>(MyCustomComponent);\r\n    });\r\n\r\n    afterEach(() => {\r\n        component = null;\r\n    });\r\n\r\n    it(\"should change the pipeline in the query builder\", () => {\r\n        const expectedPipeline = \"a new pipeline\";\r\n\r\n        // Simulate a query executed in the fake environment.\r\n        const result = Simulate.query(component.env);\r\n\r\n        expect(result.queryBuilder.pipeline).toBe(expectedPipeline);\r\n    });\r\n});\r\n```\r\n\r\n## Modules\r\n\r\n### Mock\r\n\r\nAllows to create mocks of components required for the framework.\r\n\r\n### Fake\r\n\r\nAllows to create fake objects like results, events and fields.\r\n\r\n### Simulate\r\n\r\nAllows to simulate some actions in the framework or in the browser.","readmeFilename":"README.md"}