Skip to content

Source Code for the Course: A “Wordle” on Test Driven Development in Vue.js

Notifications You must be signed in to change notification settings

vueschool/A-Wordle-on-Test-Driven-Development-in-Vue.js

Repository files navigation

A “Wordle” on Test-Driven-Development

In this hands-on course, you will learn how to write applications using Test-Driven Development.

You will make our own clone of the game Wordle completely from scratch! Besides learning Test Driven Development, this course will also be a great way to sharpen your skills with Vue 3 and its composition API; as well as sharpen your skills with Vitest and Vue Test Utils.

wordle.clone.demo.mov

Tagging by episodes

Do note that this repository contains a series of Git Tags. Each tag represents the starting state of the code base for that respective episode.

For example, if you want to skip straight to Episode 6, you can have your codebase synchronized with mine by doing: git checkout episode-6

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

Customize configuration

See Vite Configuration Reference.

About

Source Code for the Course: A “Wordle” on Test Driven Development in Vue.js

Resources

Stars

Watchers

Forks

Packages

No packages published