<#21 chore: change readme to be version specific> ...
# pact-js-development
g
#21 chore: change readme to be version specific Pull request opened by Mazata change readme to be version specific Description Since nestjs-pact is, for now, incompatible with the latest version of pact-js, the readme should help users install the correct version of this dependency Motivation and Context I believe this change to be necessary since running the command as documented in the README so far install pact-js v10 which leads to the following error when registering the
PactProviderModule
.
Copy code
TypeError: Cannot read properties of undefined (reading 'logLevel')

    50 |
    51 |   beforeAll(async () => {
  > 52 |     const moduleRef = await Test.createTestingModule({
       |                       ^
    53 |       imports: [AppModule, PactProviderModule.register(options)],
    54 |     }).compile();
    55 |

    at new Verifier (../../../node_modules/@pact-foundation/src/dsl/verifier/verifier.ts:33:21)
    at InstanceWrapper.useFactory [as metatype] (../../../node_modules/nestjs-pact/dist/providers/pact-verifier.provider.js:8:23)
    at TestingInjector.instantiateClass (../../../node_modules/@nestjs/core/injector/injector.js:343:55)
    at callback (../../../node_modules/@nestjs/core/injector/injector.js:53:45)
    at TestingInjector.resolveConstructorParams (../../../node_modules/@nestjs/core/injector/injector.js:132:24)
    at TestingInjector.loadInstance (../../../node_modules/@nestjs/core/injector/injector.js:57:13)
    at TestingInjector.loadProvider (../../../node_modules/@nestjs/core/injector/injector.js:84:9)
        at async Promise.all (index 3)
    at TestingInstanceLoader.createInstancesOfProviders (../../../node_modules/@nestjs/core/injector/instance-loader.js:47:9)
    at ../../../node_modules/@nestjs/core/injector/instance-loader.js:32:13
        at async Promise.all (index 22)
    at TestingInstanceLoader.createInstances (../../../node_modules/@nestjs/core/injector/instance-loader.js:31:9)
    at TestingInstanceLoader.createInstancesOfDependencies (../../../node_modules/@nestjs/core/injector/instance-loader.js:21:9)
    at TestingInstanceLoader.createInstancesOfDependencies (../../../node_modules/@nestjs/testing/testing-instance-loader.js:14:9)
    at TestingModuleBuilder.compile (../../../node_modules/@nestjs/testing/testing-module.builder.js:47:9)
    at Object.<anonymous> (api/certifiers/pact/nestJS.contract.e2e.ts:52:23)
How Has This Been Tested? N/A Types of changes • [ x] Bug fix (non-breaking change which fixes an issue) ☐ New feature (non-breaking change which adds functionality) ☐ Breaking change (fix or feature that would cause existing functionality to change) Checklist: • [x ] My change requires a change to the documentation. • [x ] I have updated the documentation accordingly. ☐ I have added tests to cover my changes. ☐ All new and existing tests passed. pact-foundation/nestjs-pact GitHub Actions: Build & Test (16.x) GitHub Actions: Build & Test (14.x) GitHub Actions: Build & Test (12.x) 1 other check has passed 1/4 successful checks