Skip to content

Commit

Permalink
chore: run all unit tests in ci and fix for node 12 (#4944)
Browse files Browse the repository at this point in the history
* chore: run all tests in ci

* chore: fix windows hopefully

Co-authored-by: Karin Hendrikse <[email protected]>
  • Loading branch information
danez and khendrikse authored Aug 17, 2022
1 parent 8e50080 commit 886eebc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@
"test:init:eleventy-deps": "npm ci --prefix tests/integration/eleventy-site --no-audit",
"test:init:hugo-deps": "npm ci --prefix tests/integration/hugo-site --no-audit",
"test:dev:ava": "ava --verbose",
"test:ci:ava:unit": "c8 -r json ava --no-worker-threads tests/unit/**/*.test.js tools/**/*.test.js",
"test:ci:ava:integration": "c8 -r json ava --concurrency 1 --no-worker-threads tests/integration/**/*.test.js",
"test:ci:ava:unit": "c8 -r json ava --no-worker-threads tests/unit/ tools/",
"test:ci:ava:integration": "c8 -r json ava --concurrency 1 --no-worker-threads tests/integration/",
"test:affected": "node ./tools/affected-test.mjs",
"e2e": "node ./tools/e2e/run.mjs",
"docs": "node ./site/scripts/docs.mjs",
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/utils/functions/registry.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ test('should add included_files to watcher', async (t) => {

await registry.buildFunctionAndWatchFiles(func)

t.deepEqual(watchDebouncedSpy.args.at(0)[0], ['myfile', 'include/*'])
t.is(watchDebouncedSpy.callCount, 1)
t.deepEqual(watchDebouncedSpy.args[0][0], ['myfile', 'include/*'])
})

1 comment on commit 886eebc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 222 MB

Please sign in to comment.