Giter Site home page Giter Site logo

Comments (11)

talentumtuum avatar talentumtuum commented on May 27, 2024

При старте тестов выходит ошибка как в этом ижью nestjs/nest#2190
Скорее всего проблема в actl-test -> ts-jest

from nestjs.

TorinAsakura avatar TorinAsakura commented on May 27, 2024

При старте тестов выходит ошибка как в этом ижью nestjs/nest#2190

Скорее всего проблема в actl-test -> ts-jest

И? Дальше-то что? У наших тестов в первой итерации в соседних пакетах всё ок

from nestjs.

talentumtuum avatar talentumtuum commented on May 27, 2024

@TorinAsakura значит код в соседних пакетах способен работать на es5. Этот не может

from nestjs.

TorinAsakura avatar TorinAsakura commented on May 27, 2024

@tuogeniy Решение?

from nestjs.

talentumtuum avatar talentumtuum commented on May 27, 2024

@TorinAsakura нужно обновлять зависимости пакетов actl, он блочит

from nestjs.

talentumtuum avatar talentumtuum commented on May 27, 2024

лог ошибки

tuogeniy@mac nestjs % yarn run test
yarn run v1.22.10
$ mctl test
ts-jest[versions] (WARN) Version 24.9.0 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=26.0.0 <27.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
ts-jest[config] (WARN) The option tsConfig is deprecated and will be removed in ts-jest 27, use tsconfig instead
ts-jest[versions] (WARN) Version 24.9.0 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=26.0.0 <27.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
ts-jest[config] (WARN) The option tsConfig is deprecated and will be removed in ts-jest 27, use tsconfig instead
ts-jest[versions] (WARN) Version 24.9.0 of jest installed has not been tested with ts-jest. If you're experiencing issues, consider using a supported version (>=26.0.0 <27.0.0-0). Please do not report issues in ts-jest if you are using unsupported versions.
ts-jest[config] (WARN) The option tsConfig is deprecated and will be removed in ts-jest 27, use tsconfig instead
PASS packages/nestjs-map-errors-interceptor/tests/interceptor.test.ts (5.611s)
PASS packages/server-scripts/tests/create-webpack-config.test.ts (6.558s)
PASS packages/nestjs-signed-url/tests/generate-url.test.ts (6.687s)
FAIL packages/nestjs-tinkoff/tests/request-verifier-guard.test.ts (18.06s)
● Guards › should prevent access (unauthorized)

TypeError: Class constructor Tinkoff cannot be invoked without 'new'

   8 | export class TinkoffService extends Tinkoff {
   9 |   public constructor(@Inject(TINKOFF_API_OPTIONS) options: TinkoffPublicOptions) {
> 10 |     super(options)
     |     ^
  11 |   }
  12 | }
  13 | 

  at new TinkoffService (packages/nestjs-tinkoff/src/services/tinkoff.service.ts:10:5)
  at Injector.instantiateClass (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:290:19)
  at callback (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:77:41)
  at Injector.resolveConstructorParams (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:118:24)
  at Injector.loadInstance (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:81:9)
  at Injector.loadProvider (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:38:9)
  at Injector.lookupComponentInImports (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:224:17)
  at Injector.lookupComponentInParentModules (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:190:33)
  at Injector.resolveComponentInstance (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:148:33)
  at resolveParam (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:102:38)
      at async Promise.all (index 0)
  at Injector.resolveConstructorParams (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:117:27)
  at Injector.loadInstance (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:81:9)
  at Injector.loadProvider (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/injector.js:38:9)
      at async Promise.all (index 3)
  at InstanceLoader.createInstancesOfProviders (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/instance-loader.js:43:9)
  at node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/instance-loader.js:28:13
      at async Promise.all (index 1)
  at InstanceLoader.createInstances (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/instance-loader.js:27:9)
  at InstanceLoader.createInstancesOfDependencies (node_modules/@nestjs/testing/node_modules/@nestjs/core/injector/instance-loader.js:17:9)
  at TestingModuleBuilder.compile (node_modules/@nestjs/testing/testing-module.builder.js:43:9)

from nestjs.

TorinAsakura avatar TorinAsakura commented on May 27, 2024

@tuogeniy это проблема твоего гавнокода, а не проблема mctl или зависимостей

from nestjs.

talentumtuum avatar talentumtuum commented on May 27, 2024

@TorinAsakura почему? Код работает

from nestjs.

TorinAsakura avatar TorinAsakura commented on May 27, 2024

@tuogeniy Потому что твоя ошибка никак не связана с инструментами тестирования. Они в порядке. Всё, что WARN != ERROR

from nestjs.

talentumtuum avatar talentumtuum commented on May 27, 2024

@TorinAsakura когда я запускаю тест через jest

yarn workspace @atlantis-lab/nestjs-tinkoff run jest

этой проблемы нет

from nestjs.

TorinAsakura avatar TorinAsakura commented on May 27, 2024

@TorinAsakura когда я запускаю тест через jest

yarn workspace @atlantis-lab/nestjs-tinkoff run jest

этой проблемы нет

Сейчас закину пакет, попробуй с ним протестить, ток дебагер включи

from nestjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.