Placeholder Image

字幕列表 影片播放

  • everybody.

  • Welcome to a live coating with Jesse.

  • I'm Jesse.

  • And today we're going to continue with some and and testing for react native web.

  • So if you're just joining for the first time, uh, this stream is just me, actually, coding don't rehearse anything.

  • I will make mistakes.

  • I'll try to do my best to explain what I'm doing.

  • Feel free to ask questions in the live chat or if you're watching this later on, you can put the questions in the comments, just shoot me.

  • Ah, message on Twitter.

  • Whatever other social media, uh, platform that you like, and I'll split this up.

  • I'll do a 25 minute period of coding and then I'll go answer some questions in the live shots.

  • If you put your question in, um, I'm not ignoring you.

  • I will get to it just after a bit of coding s.

  • So we are using react native.

  • But we're using something called React Native Web that will take all of our react native code and make it work in a browser.

  • Eso The benefits of doing that is that we can then take that same rag native code and run it in android or I'll s or whatever other platform that works with react Native.

  • Ah, It also, uh is a nicer development experience that we can develop right in the browser.

  • Um, and don't have to spend as much time in an emulator, which usually takes up a lot more.

  • Your CPU, Um and it's it's harder to debug.

  • All right, so I want to start out by going over this pool request that I received so you can check out there's a link in the description for the gift of Repo.

  • All the code is open source.

  • It's It's all in this repo.

  • If you want to add something to the code, please feel free.

  • Ah, have some issues already and you can check those out.

  • I'm gonna start my timer since we're getting into actual code stuff now.

  • Um, but we did get a, um, a pool request.

  • And I like the full request.

  • And everything that was done in ap Js is awesome.

  • So, basically, what it would have done is, um uh made sure that the focus went into the input.

  • So here's our game.

  • Uh, beautiful.

  • I know, right?

  • Eh?

  • So what would happen is you put in, Let's say four.

  • And then the inputs not focused anymore.

  • Right?

  • So I have to actually click back in here.

  • Okay?

  • So not a good experience, actually.

  • Had my kids play this game a few days ago.

  • And that's why where I got a lot of the issues that I put in over the weekend, it was just kind of observing what they were doing.

  • S So now, after this poor request, the focus will go back.

  • Um, so the thing I have a question about, though, and I'm not sure if you're watching So you did this poor request.

  • Uh, Sid Seduce.

  • Sorry.

  • Not sure to pronounce that, but anyway, if you're watching, you could just answer me right in the in the chat.

  • Um, so I didn't have an issue where the division this game is supposed to be for Children who are just starting to learn how to do basic math.

  • Right?

  • So the, uh, the issue that I had with the division was you would divide like, single digit numbers, and you could potentially get decimal numbers, and Children wouldn't be able to do that right.

  • They probably don't even have the concept of a decimal yet at that point, So I wanted it so that when you divide, you'd always get basically.

  • You'd always get a whole number.

  • Answer.

  • Okay, So I think maybe in the issue and explain it clearly because And correct me if I'm wrong.

  • It looks like what this is doing is it's just taking whatever the answer is from the division, and it's just rounding it, right, running it down.

  • Uh, so what I what I actually wanted and I put a little comment here, too, is what, actually one it is to make sure that the problem given to the user the division problem would have a whole number.

  • Answer.

  • So, for instance, nine divided by three is going to give you three, right?

  • Just 34 Divided by two is gonna give you two, but three divided by two is going to give you a fraction or a decimal.

  • Same way with, like, nine divided by four.

  • Right.

  • So the user would never be presented with three divided by two or nine divided by four.

  • Right?

  • So that's more of what I wanted.

  • Um, and I have a couple ideas for how to implement that, but if anybody else wants to implement that.

  • Please go ahead and to do.

  • If I guess so.

  • Like this part of the pool requests is great, and I'm ready to accept that.

  • But this part, like I said, I think it needs worked a little bit differently.

  • And that's that's probably my fault for not, um for not like explaining it.

  • Ah, well, enough in the issue.

  • So maybe Oh, um, copy.

  • This is well, and put it, add it to the issue.

  • Yeah, Yeah, I didn't Really?

  • Yeah.

  • I didn't really provide many ex much explanation or examples.

  • Okay?

  • So hopefully that made sense.

  • And we can go back to some of the code the testing code.

  • I do want to say what's up and just check and see who's here.

  • Who's watching eso.

  • Hey, everyone see a lot of you in the live chat?

  • Um, just scrolling to really click.

  • Okay, I already see some questions in there, and I will, um, I'll get to those questions as soon as the tire goes.

  • So hang in there if you can't hang in there right now, if you gotta go do something that's cool, you can always watch the recording of this later on, and you can hear my answer to your question there.

  • All right, so we did some testing, and briefly, I'll just go through this.

  • We're using puppets here to run a headless chrome browser, and then we are simulating what a user would go through and verifying that our app does what we wanted to do.

  • All right, so this is the end and test.

  • If you want to check up, check out like how we set this up this browser dot Js options dot Js and runner dot jazz Those air the files you want to check out for the set up, and then the actual test is just this one file for now at dot Spectra Js.

  • Uh, if you want to know more about the tests, check out the last stream.

  • So we started this in our last live stream that I'd done a week ago.

  • But let's let's jump into this.

  • So for now, we're just Our first test is we're checking to make sure we can actually see the title.

  • So, like, this basically verifies that the page loads and it has the text on it that we wanted to have um, we also verify that the hero character can be seen.

  • So when I say the hero, I mean this little purple square for now, uh, still need to work out some graphics and a better color scheme for this.

  • Although my kids did like the colors so well, these aren't really This doesn't look great to me.

  • It actually may not be bad for kids, so Oh, see, I think I need some more testing user testing before I make a final decision on the colors.

  • Um, let's see.

  • So we're testing that.

  • And what I'd like to test is also do we have the correct number of, uh, enemies Eso Right now we're testing addition, all right.

  • And it were saying we correct edition problems should reduce the enemies by one.

  • Right?

  • And we got pretty far along in this, but not quite.

  • So we have our value.

  • One our value twos, who are actually getting the numbers that are on the page for our problem.

  • Right?

  • So and we're getting the okay.

  • And then we're adding these numbers together, right?

  • So potentially we would do the same test for each mode of the game.

  • Right, which for right now is addition, subtraction, multiplication and division.

  • All right, but once we get this addition, one working, we could pretty much just copy and paste most of it to get it working for the other modes.

  • All right, so we have it all the way down to where the user would click.

  • Submit.

  • And what we need to do is just figure out okay?

  • Are there just too elements left with the class of enemy?

  • So I believe we already added that class.

  • I should verify because test definitely is gonna fail.

  • If we don't have anything with that class on, it s it's good.

  • Or abduct Js and check out our enemies on Where's our enemies?

  • Oops.

  • I went too far.

  • Yep.

  • So we do have a class name of enemy on all our enemies.

  • All right, so let's go back to the test.

  • So what we need to do then is just figure out in our tests how to do this.

  • So I was thinking that we could There's gonna be some way to check for the number of enemies.

  • So let's go over here to our documentation, which I thought I had some documentation open from the last time, but I guess not.

  • All right, so let's let's think What would this be?

  • You probably not puppet to your documentation.

  • Looking at.

  • Maybe just we'll see.

  • All right, let's check this out.

  • It looks like I've been here.

  • I've been to this article already, and All right, let's open up the documentation for both of these.

  • I was hoping I get lucky, and I'd see him An example of them doing the same thing instead of having to look at the documentation, but I don't think that's gonna have it.

  • Okay, uh, let's check out puppeteer.

  • A P I puppeteer is what actually runs wth e.

  • Um, interactive documentation.

  • This is it actually runs the headless browser.

  • We can see we have page a lot of options.

  • Should with the puppeteer.

  • A p i away page.

  • Uh, and I don't I don't actually think that puppeteer is gonna give us what we want, Which is why I opened Justus.

  • Well, um, see if they got a link directly to the docks.

  • Nope.

  • Not your dogs.

  • Oh, uh ah.

  • Ducks.

  • Here we go.

  • Mark functions.

  • I love her property here.

  • Uh, a p I That's what I want.

  • Okay.

  • Disc.

  • Uh, I hate to just look through docks when I'm doing the coding, but I really don't know what the, uh what's the correct way to do?

  • This is if anybody has an idea and nose, uh, good.

  • Throw it in the chat as well.

  • I'll keep trying to look over and, um see, if you have ah, answer are so let me make this bit bigger so you could see what I'm doing.

  • Okay, so And just to be clear, what I need to do is figure out I need to get the exact number off elements on the page that have the class name of enemy describe E.

  • Yeah.

  • These are not helping me.

  • Oh, you know what I had last last time.

  • Now I remember this.

  • I had my other computer open, and I think that's where I actually had all of the the documentation open.

  • And I kept checking my other computer.

  • That's why I didn't have any documentation open on my machine.

  • Um, maybe I still have it open.

  • Let's check this out.

  • And I, in fact, do have quite a bit of documentation open on my other screen right now.

  • Uh, Let's see the problem with what I'm doing right now in testing, at least for me is so I'm using several different testing like framework.

  • So potentially like on the same page, we could be using things from puppeteer, jest, mocha or chai.

  • Right?

  • So trying to find the right thing to say in the documentation has been difficult.

  • Um, there's a good time to remind everybody this is not a tutorial.

  • This is me trying to figure out how to do things.

  • It's supposed to be a realistic look at how a ah, a software engineer works.

  • Sometimes it works out well, and I get things done, and sometimes I don't.

  • All right, so let's just try something.

  • Um, So we have just copied and pasted this from appear with this comment.

  • So we have our Our result now would be after we've click submit, we're going to check for our inner HTML, and we should be able to expect the result to contain.

  • And instead of hero, we could say enemy.

  • But we want it you want to enemies at.

  • So that's the issue.

  • Expected, uh, number of all right.

  • And now is that c just testing fun number of S O.

  • If you couldn't see that, I just searched Jess.

  • Testing.

  • Find number of elements with class on page.

  • Fine selector enzyme.

  • We're not using enzyme, so it's not gonna work.

  • Yeah, let's see.

  • Jake Query.

  • Get out of here.

  • Um, just she is.

  • Cook your I switch it up, react on dhe too.

  • And testing.

  • All right, let's look at these for no door manipulations.

  • Don't Let's hear me test the phony.

  • Simply J Creek.

  • It was since uclick event user.

  • Just Yeah, not exactly what we want.

  • Um huh.

  • All right.

  • That actually looks like an interesting article, but not exactly for what we want to do.

  • All right, let me check this.

  • All right?

  • Harsh is here.

  • What's this?

  • And harsh.

  • It has some ideas using our should.

  • Saying you should use Cypress friend and testing.

  • I have never used Cypress Harsh.

  • It says I'm not using ends.

  • I I know I'm not using and says you're not using Jess.

  • Wait a second.

  • Wait.

  • So just is not being used at all in here.

  • Why does Why did I think I'm using?

  • Yes.

  • No, that's not what I wanted.

  • Quick, the wrong thing.

  • Um so harsh it.

  • I mean, that actually makes sense, though, Um, so using chai and brother, let's just go to say fur's really quick then because I don't know what cypresses.

  • Okay.

  • Attacked chutikul ship.

  • Okay, so the syntax looks very similar.

  • So all the normal testing syntax.

  • All right, So why, what what, then is better about Cyprus than puppeteer?

  • It seems like Cypress maybe does more than puppeteer.

  • Correct.

  • Uh, okay.

  • Arson says it will take time to move to Cyprus.

  • Oh, Michael said Jess was removed from package ace on, so just actually is installed with create react app.

  • So it's there.

  • It's just not in a package, Jason.

  • Like it's it's it comes with react scripts.

  • All right, so let's just make it work with this one, then.

  • Okay?

  • Harsh.

  • It says Cyprus is a complete framework.

  • Better you are.

  • All right.

  • I'll have to check out Cypress, then, uh, later on today.

  • And see if that's something we want to switch to.

  • We're really not that far along with testing, so switch shouldn't be too bad.

  • Um, all right.

  • So hard.

  • Should saying we could just check elements that length.

  • Just check the length.

  • Okay, a drink with Carter's body.

  • Just All right, Take something to say.

  • Sorry.

  • I'm looking at the, uh, look at it the last yet.

  • All right.

  • So our shit since you know what you're doing here, help me out here.

  • So I need to check the elements dot length.

  • So can I get Did you know about H Timo?

  • Um, so do I need to check?

  • Like, could I just directly I guess what I'm asking is am I doing the check off of result off of the inner HTML, then enemies?

  • Because so ah, contain.

  • Okay.

  • Okay.

  • Hardison saying don't use result.

  • No, don't use through so harsh and asked if we could do the live share.

  • I don't have the Viets code Life share set up on this computer system.

  • Uses a word she says Close.

  • Okay, So don't use result U c s s class.

  • Okay.

  • Um, yeah, I can't use it like, but I think my timer went up.

  • Okay.

  • Timer went up.

  • Let's say great.

  • And ah, then the answer.

  • Some questions right now.

  • Ah, a lot of people just saying hi.

  • Asking what language this is.

  • And it's in javascript.

  • Um see, gaze.

  • The question, Carl says.

  • I think Jesse should take a coding challenge from us and you should program a slot machine game using react, Native Web, A slot machine game.

  • Um, I had never thought of doing that.

  • Uh, maybe maybe we could do that.

  • Um, Carlson's next project must be a slot machine or card game using right Native Web.

  • Say that you accept the challenge.

  • I don't know.

  • I think about it.

  • I think about accepting the challenge.

  • Um, obvious Says, would you recommend c++ for game developing?

  • I don't I don't know.

  • I don't know what the best is for game development.

  • So, uh, I'm not the find the best version to give advice.

  • Um, can you suggest to me a video where I can learn all about the basics of C language?

  • Check out the CS 50 courses from Harvard.

  • They're all on YouTube.

  • The first, maybe like the third week er's third video or something.

  • I believe they go over basics of C, so check out that I mean, it's I don't think it's in the first video, but definitely within.

  • Like the first few videos, They they go over, see, uh, maroon ass.

  • What is software testing.

  • Um, basically, like in this case, we're doing automated testing.

  • So we create a program that runs our app and test that test the APP.

  • You can also do like testing were like an actual person.

  • Test your your ab.

  • And that's important, too, to do in both.

  • But that's what I mean by testing, huh?

  • Creepy ass.

  • Should I go for Microsoft certification for Web?

  • I don't really know.

  • I don't know anything about Microsoft's web certification.

  • Uh ah.

  • Milano World says I don't know what you do, Jesse, but I'm still learning.

  • I'm busy with HTML CSS and JavaScript says that it looks cool.

  • Um, hopefully I'll get there.

  • What are you doing?

  • This is, um, react native.

  • Uh, and we're doing testing for react native.

  • So but keep it up with the HTML CSS and JavaScript.

  • You good with that?

  • You could move on and do react if you want.

  • Uh, let's see.

  • P aces.

  • I'm your biggest fan.

  • You please do videos about pie game.

  • I really need to know.

  • I don't know anything about that.

  • So I probably won't do video.

  • Uh, let's see.

  • Getting almost Hugo says, Oh, this is sort of like pear programming.

  • Yeah, it's It's kind of like, uh, it's kind of like pear programming.

  • Except there's a lot more people who are involved.

  • Um, Gap says it's like 8 a.m. in you out here.

  • Coding respect.

  • Yeah.

  • Yeah, it is.

  • So we started at 7 30 huh?

  • It is early.

  • What?

  • This is the only time of day that Aiken, like, reliably do this.

  • This, uh, Cody show.

  • Ah, Vika says, uh, love and saw all your videos.

  • Nice and very knowledgeable.

  • Oh, thanks.

  • I appreciate that.

  • Ah, Googie Rot Says is Java enough for getting a job?

  • Oh, yeah.

  • There are a ton of job of the jobs available, so they hired job developers where I work all the time.

  • You go says CS 50 is a bit hard for a total newbie.

  • Um, CS 50.

  • Could be, but I don't know.

  • They start you out really easy.

  • Like it search.

  • It was scratched.

  • Eso.

  • But you're right.

  • I mean, I didn't do look at even the CS 50 videos, so I'd already been a developer for a couple of years.

  • So, um, I guess I don't know what it had been like if I had tried it as a total newbie, but but it's supposed to be an intro to computer science class.

  • So it's supposed to be okay, even for new people.

  • Um, okay.

  • Actually got through the everything in the chat.

  • If I happen to miss your question, just ask it again.

  • Um, we're putting the comments or something.

  • All right, let's go.

  • I don't think I'm gonna be able to do an entire Pomodoro session.

  • I'm gonna have to finish up before that.

  • So let me just marked down where we left off at a It's in the chat hoops.

  • I hate her too, so I can come right back to their All right.

  • Now, let's get, at the very least, this test working before we end, or at least try our best to get this test working.

  • Um, this is actually way harder than I anticipated it would be.

  • It seems like an easy thing, but since I've never done it is it is kind of hard.

  • Okay, so let's go back here and say Okay, so we need to get the number of elements on the page.

  • So our selector is gonna be enemies, right?

  • Is that what it is?

  • I need to double check and make sure it's not enemy.

  • Yeah, I think it is enemy, but let's double check enemy.

  • Yep.

  • Okay.

  • So selectors enemy and I wonder if we could do so, like, instead of evil body on the page.

  • Can we grab page dot and that would be puppeteer be a puppeteer thing.

  • So this safe page suit we have for a page page on, not page on page selector.

  • Yeah.

  • All right.

  • Um, returns on stalking Cleary selected within the page.

  • If no one that matches return about you is no.

  • Okay, so I don't want that with number.

  • If Noah's should return, All right, so it'll resolve to an empty race.

  • I'm assuming it would be in array.

  • So we need to use a dollar sign, dollar sign selector, those signed other son.

  • And let's call this enemies.

  • Get rid of this.

  • Um, actually, we can call this say, uh, uh, number of enemies, and you should be able to do dot length, right?

  • Number of enemies is declared.

  • All right.

  • And that's good number of enemies to equal.

  • All right, let's see.

  • See if that works.

  • First.

  • Let me see.

  • Come on.

  • Number of enemies.

  • Okay, cool.

  • So that's what harsh it is saying to awesome.

  • I do want to say like so I took that out on a five or six minute break and before the break, like my brain was just totally flustered, right?

  • Like I was try.

  • Like, I have no idea what to do here.

  • Um, after the break, it seemed like it was very clear.

  • I just thought like Okay, fine.

  • Like I had my brain had accepted the fact that I was mistakenly looking at the wrong documentation.

  • Which car should inform me of his Well, um, but I just took me a second to wrap my mind around the fact that, like the page that we get from puppeteer would have different methods on it.

  • So anyway, I'm just saying that to say, like, it's definitely a good idea to take periodic breaks.

  • I love the Pomodoro technique, which is 25 minutes of code five minute break.

  • Um, it's happened just now to me, but it happened a lot of other times that I'm stuck on a problem because in my mind, like I'm thinking, this is the way to fix it.

  • This is the path.

  • But in reality there's That's the That's a dead end, right?

  • I'm this the wrong way to go about it.

  • And then when I take a break and think about something else for a couple of minutes and come back to it, it's almost like a reset.

  • And it just freeze up my brain, too.

  • Take a different path, right?

  • So it's counterintuitive that taking it time off would help you do something faster.

  • But that has happened to me so many times.

  • Um, so anyway, definitely recommend that.

  • All right, Cool.

  • Um, so, actually, I do want to test this, so I want to test the test.

  • So let's run yarn e to T.

  • E.

  • I think that's what I did.

  • Let's check it out.

  • E T.

  • Yep.

  • The journey to he should run this and we'll get an idea of whether this works.

  • Nope.

  • All right.

  • Let's see what the problem is.

  • No note found for select their answer inputs Hopes, did we not?

  • Maybe I didn't do that.

  • Um uh, what good are ab file and let's find our input.

  • Native.

  • I d answer input.

  • Okay.

  • We should have an answer.

  • Input?

  • No note found for selector.

  • Answer influence.

  • All right, let's check that out again.

  • Type, answer.

  • Input.

  • Answer.

  • What did I do, huh?

  • So we're trying to type into answer input.

  • We're gonna put the answer in there, so this should be correct.

  • I'm just I'm gonna copy that and then paste so that we have for sure exactly the same thing.

  • Oh, I see what the problem is.

  • It was camel case here, and it was not Campbell case there.

  • All right, let's switch that up, then.

  • Well, at least that's an easy fix.

  • Silly mistake, but easy fix, usually like in Java script, you camel case everything.

  • Or at least most things but in when you're doing these selectors.

  • Oh, no.

  • Selective submit that are not put.

  • Submit on the button.

  • Um, like, when you're doing selectors, like with CSS and HTML, the standard is usually too hyphenate things, so I tend to just go with that.

  • It just bothers me to see Cam.

  • Okay?

  • Stuff in the Dom s O.

  • That's why I do it like that.

  • Native I d submit.

  • All right.

  • No note found for selective submit.

  • Now I know we have a button called Submit.

  • Right Native.

  • I d submit Right.

  • We have answer input.

  • They obviously found that submit.

  • So as you b m i t s u B m I a All right, we have it.

  • That's verify.

  • Like in the dom that that is there.

  • Okay, so here's what I submit button that's inspected and see.

  • It should have the i d.

  • Is it not?

  • Do we not have the I d submit here?

  • All right, let's check this out.

  • S u B m I T.

  • Wait a second.

  • That's just weird.

  • That's really weird.

  • We don't have an i d Yeah.

  • All right, let's go back to our code that will check what we're doing.

  • Okay, so we have this button we have submit.

  • It's it's possible that you can't put a native i d on a button.

  • I know you can do it.

  • Untouchable a pass ity.

  • So let's switch it to touch.

  • Full capacity.

  • This is going to take button oaks area.

  • Touchable capacity.

  • There we go.

  • And we'll need inside of here.

  • Um, we can't do the title anymore, so we're gonna D'oh!

  • Whoa, Our own hopes.

  • I guess that went on the wrong one.

  • And I guess I need to keep the button in there for that one.

  • Okay, So touchable opacity allows you to kind of like doom or with a button so you can check it out.

  • We may bring up the documentation in a second capacity, and let's add inside of there, um, a view and where text and we'll say submit, uh, you don't need a title on.

  • I think this should work is the bare minimum we need for touchable Lapasset e Let's see if that does what we want.

  • All right, so that's the styling is gonna be off.

  • So, like, button comes with styling.

  • Touchable.

  • Opacity does not.

  • So we need to add our own styling, which is fun.

  • Um Yep.

  • Here we go.

  • Now we have the i d.

  • Submit.

  • So let's try that again.

  • All right?

  • So it's kind of good to know.

  • Evidently, you can't directly put an i d on a button.

  • Now I think about it.

  • Maybe there's a way to do it, and I just need to look it up.

  • Ah, but I actually almost always used touchable opacity instead of button because I normally want tohave different styling.

  • Anyway, um, all right, so now we verify that the submit ideas on the page to see what air we get now expected under find equal.

  • Okay, so we got undefined with our with our tests.

  • All right, so now we actually have an issue with the test.

  • So Page, she said a weight and we wanted to Paige, and we're trying to get the enemy.

  • Let's see.

  • Mmm.

  • So maybe this doesn't return.

  • What?

  • I thought it would return.

  • Okay, so I thought it would return.

  • We'll get rid of this stuff we don't need.

  • Um I thought this would return in a ray with the elements in it.

  • Let's see what it actually returns.

  • So it's it's returning.

  • So it says, what is running?

  • Um, like with the Java script is so let's see if we can run this, we'll go to the console, and we'll say, document queer, select their all.

  • And I'm assuming we can just put in, uh, enemy hopes.

  • Would we get here?

  • Okay, we got three, Which is correct.

  • All right.

  • So let's see that to do it again.

  • But then say dot length and we should get three.

  • Good.

  • Now what we should have if we get the right answer is is actually too.

  • All right, so this works.

  • Let's verify now that that's what we actually wrote in our code.

  • So, Paige, dollar sign, dollar son dot enemy at length.

  • And here?

  • Yes, Paged.

  • I mean, yeah.

  • Yeah.

  • I mean, that looks it looks like that's what we're doing.

  • All right.

  • Harsh.

  • It says, uh, you need to do the length of the next line.

  • Okay, Cool.

  • So I guess then that that won't work.

  • Doing the chaining the length on.

  • Um, So let's do Let's switch this up and say so.

  • I'm I like, I need a different keyboard or something.

  • This is just too different from what I'm used to using it.

  • Where anyway?

  • Number of enemies equals enemies, dot length and will change this to enemies.

  • All right, cannolis do test.

  • All right, Failed.

  • Why do we feel correct?

  • Edition answer reduces enemies by one expected Ford equal to Hey, we got an actual number, but it looks like all right, so this would seem that maybe we got the answer wrong, and we actually have four enemies, so let's Z would have in here.

  • All right, so we're getting these values and we're trying to add the values do we need to do?

  • Answer equals Suite one was for you too.

  • These air probably coming through his strings.

  • Maybe we need to have them be, not strings.

  • What do you think?

  • I should just send their strings.

  • Okay.

  • Uh huh.

  • Um, and harsh.

  • It says for button, you can actually use test I d instead of native idea, and that'll work.

  • All right, so that's good to know.

  • All right, um, how do we do this?

  • Is it part parts into right?

  • Is that it Showed us that?

  • Yeah.

  • Person.

  • And that's what we want.

  • And I think that base is optional.

  • So, like, we already have, Like, the bass defaults to based 10 I believe.

  • Maybe not.

  • Uh, anyway, Parsons.

  • Oh, yeah.

  • Ah, persons And just be sure.

  • Let's say base 10.

  • So, like, this base here, like based 10 is our normal number system.

  • Like, if we put to it would be in binary.

  • Right.

  • So that's where the base is.

  • Uh, I'm not gonna I would assume that base 10 is the default, but I didn't see that.

  • It said that in the documentation, so I'm not gonna assume it.

  • I'm just gonna put it in there.

  • All right, let's see if that makes the difference.

  • Then we get a correct answer.

  • Text is not literal.

  • What did I do?

  • All right, type air text is not honorable.

  • Okay, Harsh.

  • It says it does default to 10.

  • All right, that's cool.

  • Um, what the heck am I doing with this text?

  • Is not literal type error, Okay, Harsh.

  • It's his Pass it like this.

  • Okay.

  • Oh, I'm saying maybe we need to give puppeteer string.

  • Yeah, that makes sense.

  • It was getting a string before.

  • Now it's shoot.

  • Any is not defining.

  • Ah, the dollar sign is not defined.

  • Maybe hopes template literal.

  • So I didn't catch that.

  • Thanks for the verification.

  • Okay.

  • And there's a curly's.

  • Uh, I think I need to increase My phone.

  • Says not on this screen that you conceive it on my other screen because I I couldn't even tell those were curly rackets.

  • I thought they were parentheses.

  • Okay, let's give that a shot.

  • Harsh.

  • It's good to be working with you again.

  • I I love it.

  • Um, tweet.

  • And that worked.

  • Awesome.

  • All right, cool.

  • So at some point, I stated I just wanted at least get this test working.

  • And evidently it works.

  • Um, I would say if anybody wants to do other tests like this, go ahead.

  • But harsh.

  • It said that Hey, wants to switch this over to using Cyprus, which actually is really cool.

  • I'm, uh I'm interested to see how Cyprus works.

  • Um, all right, cool.

  • So let's save this before I finish up with the rest of the questions.

  • Get status.

  • All right, There's the files that I worked on, so that makes sense.

  • Get commit.

  • We're gonna commit and do a M, And that's gonna let us.

  • So say, Tess, add test for addition it push.

  • All right, Cool.

  • That should be on.

  • Get up now.

  • And I think I gotta saw a message in there about this, um, that pool request that it's updated or something like that.

  • Did I?

  • Okay, so I have to check that out in, um, pool dating because I want to make sure you get through these questions.

  • If there are any more questions, uh, and then get to work on similar react native for ah, for my normal job.

  • Um, let's see.

  • All right, let me go back to where we started in, Uh, you, Gil vain.

  • Give up.

  • I'm not sure I pronounce that.

  • So apology says I'm from Brazil.

  • I really like your channel.

  • Thank you for saying that.

  • I appreciate that.

  • Thanks for watching.

  • Um, Michael added.

  • So we're talking about the CS 50 course earlier and whether or not it was good for beginners.

  • And Michael Creel says CS 50 is designed for new Excuse me.

  • It's a cipher.

  • Nubes, if you show is beginning.

  • And I I I do agree.

  • I think like so normally your intro to computer science class would be like, C s 100 or 101 Right.

  • So CS 50 is like, Ah, as far as I can remember, the whole idea of the class was that you could come into it like your major in in university could be something totally different in computer science.

  • But you could still take this course and and do well and understand it.

  • So at least it's supposed to be like that.

  • Um, I didn't go through the whole course.

  • I just did the first couple of videos, so I don't know how difficult it actually gets for the first couple of videos where you said I mean pretty pretty easy to understand.

  • Okay, Sufi.

  • Sufiya says thanks for sharing your knowledge.

  • Welcome.

  • Thanks for watching.

  • Justin says, could someone please give me the breakdown of what we're making?

  • Um, sorry.

  • I just joined.

  • Yeah, if you wantto more in depth breakdown, watch like video Warner to video one's kind of rough.

  • We had some technical difficulties, maybe video to be better, but, um, basically, we're just making an app.

  • Uh, that helps Children to learn basic math.

  • It just they can practice their math problems.

  • It gamma phi.

  • Is it a little bit, Um, so it's It's a little bit more fun for them, actually.

  • So my kids, my nine year old in my seven year old, both likes to play it.

  • So they were just excited to be able to play any type of game, I think.

  • Mmm.

  • Okay.

  • Justin says thank you.

  • So it's a game.

  • Yep.

  • Yeah, it's a game.

  • And I'm not like a game developer.

  • So, um, I like I've done, like things that I suppose you could call them games, but they're not legit games before.

  • Um, so this is not at all like if you want to learn out of the game.

  • Developer.

  • I'm fine.

  • Not the person you want to learn that from, But I do know react Native.

  • Ah, and I do know Web development.

  • Um, so that's more like where I'm coming from.

  • I'm just trying to make a game, like, really flipped for my Children.

  • And I want to try to release this on in the app stores.

  • Um, at some point, if I think it's decent so that other kids could also potentially get some benefit from it.

  • So that's that's why I'm doing this.

  • Justin says you can make whatever you want.

  • I just love coding does awesome.

  • Thank you.

  • All right, cool.

  • I've gotten through the everything in the chat.

  • Like I said earlier.

  • If I miss your question, just put it in the comments.

  • You can also follow me on social media.

  • I have.

  • So the link to my YouTube channels in the description if you go there, I have all my different social media links available for my channel.

  • So check him out if you wantto um, you know, message me on social media also.

  • Ah, if you like this, you can follow free code camp and set the ah notification.

  • So you get notified whenever I'm going to go live.

  • Uh, occasionally I do some videos and live streams of my own channel.

  • If you're interested in that, please check that out.

  • Subscribe.

  • Um, and you'll get notifications for that as well.

  • Uh, I'm gonna try to be back on Friday.

  • I'm not sure.

  • Last Friday, I think I ended up not feeling well and slept in and side in the stream to apologize for that.

  • But I really want to try to scream at least twice a week.

  • So try to get another one in this week, so just be looking out for that.

  • Um, like I said, you get the notification if you're subscribed.

  • Um, and I do post on social media linked in Facebook, twitter and instagram before I scream.

  • So you will get updates there before stream happens.

  • And if you miss it, you can always catch the recording later on.

  • Okay, so until next time, have a great day.

  • Have a great rest of the week.

  • And I don't know what will work on next time that will be t decided.

everybody.

字幕與單字

單字即點即查 點擊單字可以查詢單字解釋

A2 初級

React Native Web測試第二部分(P7D10)--與Jesse一起現場編碼。 (React Native Web Testing Part 2 (P7D10) - Live Coding with Jesse)

  • 3 0
    林宜悉 發佈於 2021 年 01 月 14 日
影片單字