Skip to content

Commit

Permalink
Use older version of mocha when testing on Node<10
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth committed Jun 20, 2020
1 parent 0144889 commit c7fb98c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -17,7 +17,9 @@ node_js:
- '0.12'
- '0.11'
before_script:
# Versions of node <8 require older dependencies.
# Versions of node <10 don't support the latest mocha.
- node -e 'import(".").catch(() => {});' 2>/dev/null || npm i mocha@~7.1.0
# Versions of node <8 require even older dependencies.
- node -e 'const a = {}; const b = {...a};' 2>/dev/null || npm i mocha@~3.5.3 tmp@~0.0.33
stages:
- coverage
Expand Down

0 comments on commit c7fb98c

Please sign in to comment.