From fdd03c161003ab97657cc0218f25c82c89ddf4b6 Mon Sep 17 00:00:00 2001 From: Megan Potter <57276408+feywind@users.noreply.github.com> Date: Fri, 11 Sep 2020 18:47:00 -0700 Subject: [PATCH] build(test): recursively find test files; fail on unsupported dependency versions (#717) --- synthtool/gcp/templates/node_library/.github/workflows/ci.yaml | 2 +- synthtool/gcp/templates/node_library/.mocharc.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml b/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml index a33836a6f..be8c99051 100644 --- a/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml +++ b/synthtool/gcp/templates/node_library/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: with: node-version: ${{ '{{' }} matrix.node {{ '}}' }} - run: node --version - - run: npm install + - run: npm install --engine-strict - run: npm test - name: coverage uses: codecov/codecov-action@v1 diff --git a/synthtool/gcp/templates/node_library/.mocharc.js b/synthtool/gcp/templates/node_library/.mocharc.js index ff7b34fa5..0b600509b 100644 --- a/synthtool/gcp/templates/node_library/.mocharc.js +++ b/synthtool/gcp/templates/node_library/.mocharc.js @@ -14,7 +14,8 @@ const config = { "enable-source-maps": true, "throw-deprecation": true, - "timeout": 10000 + "timeout": 10000, + "recursive": true } if (process.env.MOCHA_THROW_DEPRECATION === 'false') { delete config['throw-deprecation'];