svtslv / nestjs-objection

Objection module for NestJS
MIT License
24 stars 4 forks source link

Types error #3

Closed techvlad closed 4 years ago

techvlad commented 4 years ago
npm run test 

> nestjs-objection@2.1.1 test /home/hex/Sandbox/nestjs-objection
> jest --config ./test/jest.config.json --runInBand

 FAIL  test/features.spec.ts
  ● Test suite failed to run

    src/objection.features.ts:3:23 - error TS2498: Module '"/home/hex/Sandbox/nestjs-objection/node_modules/knex/types/index"' uses 'export =' and cannot be used with 'export *'.

    3 export * as knex from 'knex';
                            ~~~~~~

 PASS  test/index.spec.ts

Test Suites: 1 failed, 1 passed, 2 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        3.161 s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nestjs-objection@2.1.1 test: `jest --config ./test/jest.config.json --runInBand`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the nestjs-objection@2.1.1 test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Steps to reproduce: 1) Clone repo 2) Install packages npm i 3) Run tests npm test

svtslv commented 4 years ago

Fixed