Comments (11)
При старте тестов выходит ошибка как в этом ижью nestjs/nest#2190
Скорее всего проблема в actl-test -> ts-jest
from nestjs.
При старте тестов выходит ошибка как в этом ижью nestjs/nest#2190
Скорее всего проблема в actl-test -> ts-jest
И? Дальше-то что? У наших тестов в первой итерации в соседних пакетах всё ок
from nestjs.
@TorinAsakura значит код в соседних пакетах способен работать на es5. Этот не может
from nestjs.
@tuogeniy Решение?
from nestjs.
@TorinAsakura нужно обновлять зависимости пакетов actl, он блочит
from nestjs.
лог ошибки
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.
@tuogeniy это проблема твоего гавнокода, а не проблема mctl или зависимостей
from nestjs.
@TorinAsakura почему? Код работает
from nestjs.
@tuogeniy Потому что твоя ошибка никак не связана с инструментами тестирования. Они в порядке. Всё, что WARN != ERROR
from nestjs.
@TorinAsakura когда я запускаю тест через jest
yarn workspace @atlantis-lab/nestjs-tinkoff run jest
этой проблемы нет
from nestjs.
@TorinAsakura когда я запускаю тест через jest
yarn workspace @atlantis-lab/nestjs-tinkoff run jest
этой проблемы нет
Сейчас закину пакет, попробуй с ним протестить, ток дебагер включи
from nestjs.
Related Issues (20)
- [bug] nestjs-map-errors-interceptor works incorrectly with nestjs >7 HOT 1
- NestJS Gateway Type
- Connection isn't provided HOT 1
- Обновление grpc-playground HOT 21
- Обновление grpc-errors
- Обновление grpc-http-proxy
- Обновление `grpc-identity` HOT 5
- Обновление `grpc-reflection` HOT 3
- Обновление зависимостей `dataloader` HOT 8
- Обновление зависимостей `external-renderer` HOT 9
- Обновление зависимостей `gateway` HOT 9
- Обновление зависимостей `hydra`
- Обновление зависимостей `keto` HOT 4
- Обновление зависимостей `kratos` HOT 4
- Обновление зависимостей `logger`
- Обновление зависимостей `signed-url` HOT 2
- Обновление зависимостей `typeorm-seeding`
- Обновление зависимостей `typesense` HOT 1
- Обновление зависимостей `typesense-typeorm` HOT 1
- Адаптер `keto-grpc` HOT 18
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs.