atls / raijin

Atlantis working toolset
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

[bug] actl-test works incorrectly with classes #120

Closed talentumtuum closed 3 years ago

talentumtuum commented 3 years ago

Описание бага

actl-test выводит варнинги при запуске и некорректно транслирует ts код, из-за чего тест падает

Материалы

tuogeniy@mac nestjs % yarn run test
yarn run v1.22.10
$ actl 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[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[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.
 PASS  packages/server-scripts/__tests__/create-webpack-config.test.ts
 FAIL  packages/nestjs-aws-s3/__tests__/aws-s3-service.test.ts
  ● Console

    console.log
      undefined

      at Object.<anonymous> (packages/nestjs-aws-s3/__tests__/aws-s3-service.test.ts:19:13)

  ●  › AwsS3 service extended by aws-sdk::S3

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

       7 | export class AwsS3Service extends S3 {
       8 |   public constructor(@Inject(AWS_S3_OPTIONS) options: S3.ClientConfiguration) {
    >  9 |     super(options)
         |     ^
      10 |   }
tuogeniy@mac nestjs % yarn run test
talentumtuum commented 3 years ago

Варнинги пропали, но ошибка сохранилась

TorinAsakura commented 3 years ago

@tuogeniy 1. Спасибо

  1. Я не слепой, у меня мониторинг работает круглосуточно
  2. Это результат твоей работы за сутки?
talentumtuum commented 3 years ago

@TorinAsakura нет

TFK70 commented 3 years ago

@tuogeniy есть какие-нибудь идеи насчет этого? Эта ошибка есть только если запускать actl test (он же просто jest) из корня, чтобы он сам все тесты по репе собирал. Если вызывать его точечно, на конкретный тест - ошибки нет

talentumtuum commented 3 years ago

@TFK70 Сходу идей нет. Посмотрю сегодня и отпишу

talentumtuum commented 3 years ago

@tuogeniy есть какие-нибудь идеи насчет этого? Эта ошибка есть только если запускать actl test (он же просто jest) из корня, чтобы он сам все тесты по репе собирал. Если вызывать его точечно, на конкретный тест - ошибки нет

Пока что остановился на том, что проблема с конфигами. Нужно проверить какой конфиг пробрасывается в обоих случаях