jest-schema-matcher
Advanced tools
Comparing version 1.7.9 to 1.7.10
@@ -0,1 +1,8 @@ | ||
## [1.7.10](https://github.com/ryparker/jest-schema-matcher/compare/v1.7.9...v1.7.10) (2020-11-18) | ||
### Bug Fixes | ||
* **package.json, to-match-schema.ts:** upgraded deps, implemented node path parsing instead of regex ([2f1dc60](https://github.com/ryparker/jest-schema-matcher/commit/2f1dc60dac43b03539c2e73fd3dca05345a6aa27)) | ||
## [1.7.9](https://github.com/ryparker/jest-schema-matcher/compare/v1.7.8...v1.7.9) (2020-08-27) | ||
@@ -2,0 +9,0 @@ |
@@ -69,3 +69,3 @@ "use strict"; | ||
function readSchema(path) { | ||
const fileExists = checkIfFileExists(path); | ||
const fileExists = fs_1.default.existsSync(path); | ||
if (!fileExists) { | ||
@@ -77,9 +77,6 @@ return null; | ||
} | ||
function checkIfFileExists(path) { | ||
return fs_1.default.existsSync(path); | ||
} | ||
function findSchema(testPath, schemaName) { | ||
const testDir = testPath.replace(/(?<=(\/|\\))[\w\-.]*\.test\.ts/gm, ''); | ||
const schemaDir = path_1.default.resolve(testDir, 'schemas'); | ||
const dirExists = checkIfFileExists(schemaDir); | ||
const parsedTestPath = path_1.default.parse(testPath); | ||
const schemaDir = path_1.default.resolve(parsedTestPath.dir, 'schemas'); | ||
const dirExists = fs_1.default.existsSync(schemaDir); | ||
if (!dirExists) { | ||
@@ -86,0 +83,0 @@ fs_1.default.mkdirSync(schemaDir, { recursive: true }); |
{ | ||
"name": "jest-schema-matcher", | ||
"version": "1.7.9", | ||
"version": "1.7.10", | ||
"license": "MIT", | ||
@@ -59,9 +59,9 @@ "files": [ | ||
"dependencies": { | ||
"ajv": "^6.12.4", | ||
"ajv": "^6.12.6", | ||
"chalk": "^4.1.0", | ||
"jest-matcher-utils": "^26.4.2", | ||
"jest-matcher-utils": "^26.6.2", | ||
"lodash": "^4.17.20", | ||
"pretty-format": "^26.4.2", | ||
"pretty-format": "^26.6.2", | ||
"schematized": "^1.8.5", | ||
"variable-diff": "^2.0.1" | ||
"variable-diff": "^2.0.2" | ||
}, | ||
@@ -71,19 +71,19 @@ "devDependencies": { | ||
"@semantic-release/git": "^9.0.0", | ||
"@types/jest": "^26.0.10", | ||
"@types/lodash": "^4.14.160", | ||
"@types/node": "^14.6.1", | ||
"commitizen": "^4.2.1", | ||
"@types/jest": "^26.0.15", | ||
"@types/lodash": "^4.14.165", | ||
"@types/node": "^14.14.8", | ||
"commitizen": "^4.2.2", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint-config-xo-typescript": "^0.32.0", | ||
"eslint-plugin-jest": "^23.20.0", | ||
"husky": "^4.2.5", | ||
"jest": "^26.4.2", | ||
"lint-staged": "^10.2.13", | ||
"eslint-config-xo-typescript": "^0.35.0", | ||
"eslint-plugin-jest": "^24.1.3", | ||
"husky": "^4.3.0", | ||
"jest": "^26.6.3", | ||
"lint-staged": "^10.5.1", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.1.1", | ||
"prettier": "^2.1.2", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.1.1", | ||
"ts-jest": "^26.3.0", | ||
"typescript": "^4.0.2", | ||
"xo": "^0.33.0" | ||
"semantic-release": "^17.2.3", | ||
"ts-jest": "^26.4.4", | ||
"typescript": "^4.0.5", | ||
"xo": "^0.34.2" | ||
}, | ||
@@ -90,0 +90,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
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
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
20233
190
Updatedajv@^6.12.6
Updatedjest-matcher-utils@^26.6.2
Updatedpretty-format@^26.6.2
Updatedvariable-diff@^2.0.2