Now that the library is using ES6 syntax and transpiling with Babel, the test scripts will not run. Kent explains why this is happening and introduces the Babel Register plugin which will help alleviate the problem. He also talks about why the Babel plugin, Istanbul will now be used for code coverage.
(oriental music)…- There are a couple of things that I wanted to talk…about before we start covering during test coverage…for, or transpiling our tests.…One thing is just as kind of a pro tip…as you're working through these solutions,…if things aren't quite working for you…and you're not sure why, then this is something…fancy you can do with git to figure out what's wrong.…So, I'm still on the previous branch…and I've like done a little bit of work,…but it's not working for me and I'm not sure why.…
So I'm going to say git diff and I'm going to provide…the name of the next branch, 07.0-transpile-source.…So this is the one that actually has the solution…and that will show me what's different between…what I have right now and the next branch.…And so I see I haven't set up my eslint stuff yet,…that's not really important to what I'm doing right now,…there's something in the gitignore I need to do,…oh and then there's something in the package.json…that's different, looks like I have a typo here.…And so I actually use a really cool thing called…
Note: This course was created by Frontend Masters. It was originally released on 08/09/2016. We're pleased to host this training in our library.
- Creating an open-source library
- Linting and testing
- Code coverage
- Installing and configuring Babel
- Peer dependencies
- Forking and renaming
- Continuous integration and automating releases
Skill Level Intermediate
1. Creating an Open-Source Library
2. Linting and Testing
3. Git Hooks, Babel, and Webpack
4. Continuous Integration and Automating Releases
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.