Skip to content

npm run test fails (async.spec.js) after clean clone and npm install #56

Open
@timheilman

Description

To reproduce:

git clone [email protected]:ajv-validator/ajv-merge-patch.git
cd ajv-merge-patch
npm i
npm test

Expected: all tests pass
Actual:

  1) async schema loading
       $merge
         should load missing schemas:
     TypeError: resolver.resolve is not a function
      at resolveUrl (node_modules/ajv/dist/compile/resolve.js:90:21)
...
  2) async schema loading
       $patch
         should load missing schemas:
     TypeError: resolver.resolve is not a function
      at resolveUrl (node_modules/ajv/dist/compile/resolve.js:90:21)

This is due to a change introduced in ajv v8.10.0 which is pulled by the devDependency "ajv": "^8.2.0". Specifically,

ajv-validator/ajv@0e47ab4

This very short PR fixes this issue in the same technique as that commit in ajv.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions