Skip to content

Commit

Permalink
Merge pull request #459 from ralexmatthews/dotenv-for-tests
Browse files Browse the repository at this point in the history
Cleans up tests a little bit
  • Loading branch information
ralexmatthews authored Jul 22, 2024
2 parents 5eacb34 + fbbfee9 commit ef1fd7a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"timeout": 10000,
"require": ["@babel/register", "dotenv/config", "./test/helpers/common.js"],
"recursive": true
}
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"lint": "eslint --ext .js,.ts .",
"lintFix": "eslint --ext .js,.ts --fix .",
"prepublishOnly": "npm run clean && npm run build && npm run test && npm run lint && npm run formatCheck",
"repl": "./repl.js --local easypost.js",
"repl": "./repl.js --local ./dist/easypost.js",
"scan": "npx audit-ci -m --config ./audit-ci.jsonc",
"test": "cross-env NODE_ENV=test mocha --timeout 10000 --require @babel/register --require ./test/helpers/common.js --recursive ./test",
"test": "cross-env NODE_ENV=test mocha",
"watch": "webpack --config webpack.config.babel.js --watch"
},
"dependencies": {
Expand Down Expand Up @@ -65,6 +65,7 @@
"chai": "4.3.10",
"chai-as-promised": "^7.1.1",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-webpack": "^0.13.2",
Expand Down

0 comments on commit ef1fd7a

Please sign in to comment.