How to Write Unit Tests for your Ionic Angular App

  Рет қаралды 9,518

Simon Grimm

Simon Grimm

Күн бұрын

Пікірлер: 36
@irohwavez
@irohwavez 2 жыл бұрын
Oh man, this is the thing that's been on my backburner to learn and do properly for over a year now. Thank you!
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Now is the time Jason :)
@dansteveadekanbi9899
@dansteveadekanbi9899 2 жыл бұрын
I have been waiting for this video. Thank you so so much.
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Glad I could help Dansteve!
@vveerrgg416
@vveerrgg416 2 жыл бұрын
OMG !!! ... the one thing I have never understood and promised myself i would do next time I build a project from scratch .... SOOO now you've got me wanting to build something new to follow this method. Thanks ... (no seriously thank you... this is awesome)
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Glad I could help! And it's always a good feeling to start a new project :)
@iridixgu7537
@iridixgu7537 Жыл бұрын
Thanks for this awesome video!
@galaxies_dev
@galaxies_dev Жыл бұрын
Glad you liked it!
@geronimovelasco
@geronimovelasco 2 жыл бұрын
Just when I need this topic, ty Simon!
@galaxies_dev
@galaxies_dev 2 жыл бұрын
🙌
@f19-x9k
@f19-x9k 2 жыл бұрын
Love your work man, thank you. Shout out from Brazil.
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Thanks for watching!
@igorigor806
@igorigor806 2 жыл бұрын
Thanks!
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Thank you Igor!
@TheSaceone
@TheSaceone 2 жыл бұрын
I'm gonna need to see this video more than a couple of times... Testing is mindblowing, thank you so much for explaining them! One question Simon, is it necessary to keep track of the subscription when testing observables and unsubscribe afterEach test block?
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Not 100% sure if it's necessary but can't hurt to clean up :D
@cinematicvideosbyrumel7216
@cinematicvideosbyrumel7216 10 ай бұрын
How do you test it when you use functions like adding a doc to/ reading a doc from a firestore collection in the service.ts? One good video tutorial would be a good resource for us since we don't find enough resources regarding testing firestore related functions.
@duanehodges3146
@duanehodges3146 2 жыл бұрын
SImon, how would you inject the Google Place Module into a unit test?
@Eyezbergslim
@Eyezbergslim 2 жыл бұрын
Great tutorial as usual, but I"m having issues with a unit test that requires me mocking the GooglePlace Module. Do you have an example of how to do that?
@alanbique2548
@alanbique2548 2 жыл бұрын
one more top quality video!! Thankss!!
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Thank you!
@w3tweaks408
@w3tweaks408 Жыл бұрын
can I get jest unit test case for ionic capacitor plugin?
@TheLukedb
@TheLukedb 7 ай бұрын
Can you make a new video with Jest since Angular is moving away from Karma?
@mostafaosman1437
@mostafaosman1437 2 жыл бұрын
Thank you for this
@galaxies_dev
@galaxies_dev 2 жыл бұрын
No problem 😊
@vladimirkolesnikov8672
@vladimirkolesnikov8672 2 жыл бұрын
Thanks a lot! What about unit testing functionality connected with Capacitor's native features?
@galaxies_dev
@galaxies_dev 2 жыл бұрын
In those cases you would most likely create a Mock object of the Capacitor class since you can't really trigger a native plugin within a test!
@ravijatav1938
@ravijatav1938 2 жыл бұрын
Hi Simon I am trying to integrate paid api for voice and video calling in ionic Cordova app but unable to implement it. So will you please guide me for that how can I implement this. Please provide me a solution for that as soon as possible.
@mohammadaamir7741
@mohammadaamir7741 2 жыл бұрын
i am also integrated same but facing same issue please provide best possible solution for that.
@PlaidFox
@PlaidFox 2 жыл бұрын
Tried walking through this tutorial and got to about 4:16 when my npm Test threw the following error: "Error: src/app/services/data.service.ts:12:31 - error TS2345: Argument of type 'string | null' is not assignable to parameter of type 'string'. Type 'null' is not assignable to type 'string'. 12 const result = JSON.parse(localStorage.getItem('todos'));" Not sure if there's a newer version of this video tutorial with updated code or if I'm doing something wrong on my end.
@Gabriel-pe6oi
@Gabriel-pe6oi Жыл бұрын
do this: getTodos(): any[] { const data = localStorage.getItem('todos'); const result = data ? JSON.parse(data) : []; return result; }
@vishh__
@vishh__ 2 жыл бұрын
Hey Simon can please make a video on auto verification of phone number using ionic capacitor
@carlosmontiel7078
@carlosmontiel7078 2 жыл бұрын
Can you make a vide on how to do ionic build android/ios and then install it ? I was wondering the way you can sign apps with ionic.
@galaxies_dev
@galaxies_dev 2 жыл бұрын
Sounds good Carlos, sure!
@supadek
@supadek 2 жыл бұрын
Ehrenmann!
@galaxies_dev
@galaxies_dev 2 жыл бұрын
🤝
How to find MEMORY LEAKS in Ionic Angular Apps
24:23
Simon Grimm
Рет қаралды 10 М.
Java Unit Testing with JUnit - Tutorial - How to Create And Use Unit Tests
21:35
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 115 МЛН
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 23 МЛН
Angular Unit Testing Course - All That You Need to Know About Testing
1:09:35
Monsterlessons Academy
Рет қаралды 21 М.
Ionic E2E Tests with Cypress.io
31:07
Simon Grimm
Рет қаралды 6 М.
How to Build a Native App from Angular Projects with Capacitor
29:39
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 101 МЛН
The Role of Unit Tests in Ionic
12:24
Joshua Morony
Рет қаралды 10 М.
Build Your First Ionic App with Firebase using AngularFire 7
27:18
React Native Debugging: From JS to Native
14:25
Simon Grimm
Рет қаралды 3,3 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 115 МЛН