This project provides a basic setup for writing and testing asynchronous JavaScript functions using Jest. It serves as a starter for learning and practicing how to handle asynchronous operations and testing them.
- Setup with Jest for testing.
- Example tests for asynchronous JavaScript functions.
- Instructions for running tests locally.
To set up the project, follow these steps:
-
Clone the repository:
git clone https://github.com/Thinkful-Ed/starter-testing-async-javascript.git
-
Navigate into the project directory:
cd starter-testing-async-javascript
-
Install the necessary dependencies:
npm install
To run the test suite, simply use:
npm test
This command will execute all tests found in the tests
directory.
The project is organized as follows:
.
├── src # Source code files
│ └── example.js # Example asynchronous function to be tested
├── tests # Test files
│ └── example.test.js # Example test for the async function
├── .gitignore # Files and directories to ignore in git
├── package.json # Project dependencies and scripts
└── README.md # Project documentation (this file)
- Jest Documentation - Learn more about testing asynchronous code.
- Node.js Documentation - Official documentation for Node.js.