Giter Site home page Giter Site logo

geek-fun / jest-search Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 0.0 340 KB

Jest preset for running tests with local ElasticSearch, OpenSearch and ZincSearch.

Home Page: https://www.npmjs.com/package/@geek-fun/jest-search

License: MIT License

JavaScript 4.03% TypeScript 95.97%
elasticsearch integration-test jest jest-preset opensearch tdd-javascript tdd-typescript es jest-environment tdd

jest-search's People

Contributors

blankll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jest-search's Issues

trying to make it work

jest-search checking platform uname: Darwin arm64 +0ms
jest-search checking if binary exists: /app/node_modules/.cache/jest-search/elasticsearch-8.8.2 +1ms
jest-search downloading binary, url: https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.8.2-darwin-arm64.tar.gz, path: /app/node_modules/.cache/jest-search/elasticsearch-8.8.2 +0ms
  jest-search Downloaded /app/node_modules/.cache/jest-search/elasticsearch-8.8.2 +336ms
jest-search Starting elasticsearch 8.8.2, /app/node_modules/.cache/jest-search/elasticsearch-8.8.2 +1ms
jest-search checking the local elasticsearch:9600 startup: 30 +13ms
jest-search failed to start engine emit error: {"errno":-2,"code":"ENOENT","syscall":"spawn /app/node_modules/.cache/jest-search/elasticsearch-8.8.2/bin/elasticsearch","path":"/app/node_modules/.cache/jest-search/elasticsearch-8.8.2/bin/elasticsearch","spawnargs":["-p","/app/node_modules/.cache/jest-search/elasticsearch-8.8.2/server-pid","-Ecluster.name=jest-search-local","-Enode.name=jest-search-local","-Ehttp.port=9600","-Expack.security.enabled=false"]} +0ms
/app/node_modules/@geek-fun/jest-search/dist/src/engine.js:61
throw new Error('failed to start engine emit error');

const { startEngine, stopEngine } = require('@geek-fun/jest-search');

startEngine for global setup
stopEngine for global teardown

const esSearchConfig = {
  engine: 'elasticsearch', // or 'opensearch' or 'zincsearch'
  version: '8.8.2',
  port: 9600,
  clusterName: 'jest-search-local',
  nodeName: 'jest-search-local',
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.