@shelf/jest-elasticsearch
Advanced tools
Comparing version 5.1.0 to 5.2.0
"use strict"; | ||
var _path = require("path"); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path_1 = require("path"); | ||
module.exports = { | ||
globalSetup: (0, _path.resolve)(__dirname, './setup.js'), | ||
globalTeardown: (0, _path.resolve)(__dirname, './teardown.js') | ||
}; | ||
globalSetup: (0, path_1.resolve)(__dirname, './setup.js'), | ||
globalTeardown: (0, path_1.resolve)(__dirname, './teardown.js') | ||
}; |
"use strict"; | ||
var _path = require("path"); | ||
var _elasticsearchLocal = require("@shelf/elasticsearch-local"); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const path_1 = require("path"); | ||
const elasticsearch_local_1 = require("@shelf/elasticsearch-local"); | ||
const cwd = require('cwd'); | ||
module.exports = function startES() { | ||
const path = process.env.JEST_ELASTICSEARCH_CONFIG || (0, _path.resolve)(cwd(), 'jest-es-config.js'); | ||
const config = require(path)(); | ||
return (0, _elasticsearchLocal.start)(config); | ||
}; | ||
const path = process.env.JEST_ELASTICSEARCH_CONFIG || (0, path_1.resolve)(cwd(), 'jest-es-config'); | ||
const config = require(path)(); | ||
return (0, elasticsearch_local_1.start)(config); | ||
}; |
"use strict"; | ||
var _elasticsearchLocal = require("@shelf/elasticsearch-local"); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const elasticsearch_local_1 = require("@shelf/elasticsearch-local"); | ||
module.exports = function stopES() { | ||
(0, _elasticsearchLocal.stop)(); | ||
}; | ||
(0, elasticsearch_local_1.stop)(); | ||
}; |
{ | ||
"name": "@shelf/jest-elasticsearch", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Run your tests using jest & elasticsearch-local", | ||
@@ -26,4 +26,3 @@ "keywords": [ | ||
"scripts": { | ||
"build": "rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib", | ||
"build": "rm -rf lib/ && tsc --declaration", | ||
"coverage": "jest --coverage", | ||
@@ -45,8 +44,8 @@ "lint": "eslint . --ext .js,.ts,.json --fix", | ||
}, | ||
"babel": { | ||
"extends": "@shelf/babel-config/backend" | ||
}, | ||
"prettier": "@shelf/prettier-config", | ||
"jest": { | ||
"preset": "./jest-preset.js" | ||
"preset": "./jest-preset.js", | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
} | ||
}, | ||
@@ -58,6 +57,3 @@ "dependencies": { | ||
"devDependencies": { | ||
"@babel/cli": "7.19.3", | ||
"@babel/core": "7.20.2", | ||
"@elastic/elasticsearch": "8.4.0", | ||
"@shelf/babel-config": "1.2.0", | ||
"@shelf/eslint-config": "2.29.0", | ||
@@ -69,8 +65,9 @@ "@shelf/prettier-config": "0.0.7", | ||
"@types/node": "16", | ||
"eslint": "8.28.0", | ||
"husky": "7.0.4", | ||
"eslint": "8.47.0", | ||
"husky": "8.0.3", | ||
"jest": "28.1.3", | ||
"lint-staged": "12.1.2", | ||
"prettier": "2.8.0", | ||
"typescript": "4.8.4" | ||
"lint-staged": "13.3.0", | ||
"prettier": "2.8.8", | ||
"ts-jest": "28.0.8", | ||
"typescript": "5.1.6" | ||
}, | ||
@@ -77,0 +74,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14
52
9851