Angular Unit Testing Course - All That You Need to Know About Testing

Поділитися
Вставка
  • Опубліковано 10 лют 2025

КОМЕНТАРІ • 49

  • @FinanzMinimalist
    @FinanzMinimalist Рік тому +11

    Awesome! This comes to the right time :) Please keep up the great content.

  • @marcogrillo3396
    @marcogrillo3396 8 місяців тому +3

    This is definitely the BEST course on Angular Testing. I also bought your full course.
    Thank you, keep up the good work!

  • @ovuokeaghwotu2389
    @ovuokeaghwotu2389 4 місяці тому

    What I enjoy about your videos is how practical they are. They have immediate use in most large-scale Angular apps. Thank you for your work.

  • @benchik100
    @benchik100 3 місяці тому

    I really like your channel!! English is very clear and pleasant to my ear, the material is served very well!

  • @devcognicion
    @devcognicion Місяць тому

    Awesome! Do you have any advice about testing with the new features in Angular v19? Thanks!

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Місяць тому +1

      What specifically? Testing signals is the same except of input signals. I didn't try to test defer yet.

    • @devcognicion
      @devcognicion Місяць тому

      ​@@MonsterlessonsAcademy Oh nice, yep about control-flow, but as you said maybe im deeping a lot in DOM and not the behaivor code Thanks!

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Місяць тому +1

      @@devcognicion There are no changes for tests for control flow. It just works.

  • @peter3818
    @peter3818 8 місяців тому

    As far as I know, you can simply destructure the 'expect' function from the callback parameter object inside 'it', in order to make it work with asynchronous code. Something like this:
    it('should expect asynchronously', ({ expect }) => {api.getTags().subscribe((response) => { expect(response).toBeTruthy(); })})
    But maybe this is just working with vitest, don't know for sure. Anyways, thanks for the content!

  • @abhinav2554131
    @abhinav2554131 7 місяців тому

    Very well explained in just an hour i went from zero to being confident, however could you also suggest how to unit test the components?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  7 місяців тому

      I cover everything about components testing including real project testing in the full course

  • @uaplatformacomua
    @uaplatformacomua 11 місяців тому

    Awesome course, thank you

  • @ekchills6948
    @ekchills6948 6 місяців тому

    Woww!! I learned so much thank you

  • @bjeouisaber2391
    @bjeouisaber2391 2 місяці тому

    Thnks for video, I would say using jest-preset-angular to compile tests will end up being slower than jasmine and the advantage of using jest is no longer an advantage really, Angular added an experimental official support for jest and it uses esbuild internally which means super fast tests with Jest, why didn't you opted for that ?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  2 місяці тому

      I never felt a slowness of jest preset. I didn't use esbuild with jest because it is experimental and not something that I would put in the course.

  • @mahmoudadel1542
    @mahmoudadel1542 2 місяці тому

    Can you tell me please which editor you are using?

  • @uaplatformacomua
    @uaplatformacomua 11 місяців тому +2

    It lacks the link to github with this code...

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  11 місяців тому +2

      It's a part of the paid course. You get access to the code under every single video inside a full course

    • @uaplatformacomua
      @uaplatformacomua 11 місяців тому

      @@MonsterlessonsAcademy Oh, I see. Thank you ☺️

  • @valerio9851
    @valerio9851 11 місяців тому

    I followed this video till minute 21 and I am stuck. I have this error when running the test: ({"Object.":function(module,exports,require,__dirname,__filename,jest){import { range } from './utils';
    ^^^^^^
    SyntaxError: Cannot use import statement outside a module
    at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
    Test Suites: 1 failed, 1 total
    Tests: 0 total
    Snapshots: 0 total
    Time: 0.916 s
    Ran all test suites. I can't fix it. can you help me please?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  11 місяців тому

      Unfortunately I can't help without debugging your code.

    • @ThisLineCrossed
      @ThisLineCrossed 8 місяців тому

      Are you sure you have not nested the import-Statement somewhere? Did you correctly place the import in the beforeEach function? Any syntax errors or anything else like that?

    • @MariemAMAMI
      @MariemAMAMI 5 місяців тому

      same error

  • @mma-dost
    @mma-dost Рік тому +2

    Please upload for react too and next js.

    • @sergeu90
      @sergeu90 Рік тому +1

      I want also for react.

    • @mma-dost
      @mma-dost Рік тому

      you too comment maybe he will read yours he havent replied to mine comment

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому +1

      Thank you. I will add it in the list of ideas for the next course

    • @mma-dost
      @mma-dost Рік тому

      thanks a lot sir @@MonsterlessonsAcademy

  • @DarrellGamble-bi4up
    @DarrellGamble-bi4up 10 місяців тому

    Would this work with Angular 14?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  10 місяців тому +1

      Yes. The only difference is that standalone components are not there yet but it doesn't change anything. You inject a component in the test in another way. This is it.

    • @DarrellGamble-bi4up
      @DarrellGamble-bi4up 10 місяців тому

      You're a great presenter. Keep doing what you do!@@MonsterlessonsAcademy

  • @sergeu90
    @sergeu90 Рік тому

    For react will be useful also

  • @ngathanh8438
    @ngathanh8438 11 місяців тому

    thanks

  • @terenceroberts5240
    @terenceroberts5240 Місяць тому

    Where is the download code for the video?

  • @ucretsiztakipci6612
    @ucretsiztakipci6612 11 місяців тому

    35:00

  • @ChadiKawaf
    @ChadiKawaf 9 місяців тому

    where is the source code?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  9 місяців тому +1

      As this is a part of the full course you get access to the course code of each video inside the course.