Hello!
And welcome to this workshop repo. In here you will find some excercises that will hopefully help you get a good grasp on some of the basic building blocks that make Vue such an awesome framework.
The idea with this repo is that you have a Vue app with different sections which need to be fixed in order for the tests to pass.
- Make sure you are on a relatively new version of Node.js (I am using 12.x)
- Install all the dependencies for this repo.
npm install - Run the unit tests (this will run in watch mode)
2a. Please note: you might come accross this facebook/create-react-app#4540
npm run test:unit - At the same time, you want to run your development server so you can see your app and interact with it (open a new terminal session):
npm run serve - Now that your services are running, find
/tests/unit/helloWorld.spec.jsand make the test declaration to look like this (we are removing thexat the beginning, effectively marking this test to not be skipped):- xit("should bind the `name` properly", async () => { + it("should bind the `name` properly", async () => {
- Edit
/src/App.vueand uncomment the tag for the component you want to work with, in our case<HelloWorld />should be uncommented. - Go into the
/src/components/HelloWorld.vuefile and implement the proper code according to the instructions found in the comments of the file. - Visit http://localhost:8080/ and there you will find your app running.
Once you fix the Vue code (in the components folder) your tests will pass and the application on the browser window will behave as intended!
