EasyPost / easypost-node

EasyPost Shipping API Client Library for Node
https://easypost.com/docs/api
MIT License
139 stars 54 forks source link

Cleans up tests a little bit #459

Closed ralexmatthews closed 4 months ago

ralexmatthews commented 4 months ago

Description

This adds support for environment variables in the .env when running tests, and adds a mocharc.json file to hold the mocha commands.

I just added a requirement on the dotenv package, the standard Node.js package for reading .env files, and moved the command line flags from the package.json into a mocharc.json file.

This solves the issues of like:

Also fixes the repl command, since that was pointing to a file that didn't exist.

Testing

This is a change to the testing suite itself, so if the tests pass, this is tested, I guess?

Pull Request Type

Please select the option(s) that are relevant to this PR.