- Copy this repo. Either do it manually (
rm -rf .git && git init
in the copied directory), or by forking and renaming on GitHub, or (best of all) creating a new repo on GitHub and choosing this repo as its template. - Go into the repo and run
npm i
to install thejest
testing framework. - Run
npm test
in a terminal, preferably a full-screened one for a proper display of your test results. Or, alternately, use an in-line test runner if you have one. - Write some tests in
main.test.js
that will test your student's code, and then write the code inmain.js
that your students should write. Don't forget to add anything you want tested to themodule.exports
object inmain.js
, and declare them inmain.test.js
in therequire
deconstruction curlies. - Delete your code; that's the student's job now. Or, even better: make this repo a solutions repo for a repo you'll now make without the solution in it.
- DELETE THIS README! These directions are not for your students. Even better: rewrite this readme to be directions that are for your students.
generated from ci-wdi-900/testing-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
ci-wdi-900/testy
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published