Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore: add smart typing to testMany (#701)
Browse files Browse the repository at this point in the history
Co-authored-by: Netlify Team Account 1 <netlify-team-account-1@users.noreply.github.com>
  • Loading branch information
1 parent e38f0a0 commit 9442aaf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/helpers/test_many.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
const { platform } = require('process')

/**
* @template M, O
* @param {import("ava")} test
* @param {Record<M, O>} matrix
* @returns {(name: string, matrix: M[], runner: (opts: O, t: import("ava").ExecutionContext) => any) => void}
*/
const makeTestMany = (test, matrix) => {
const testBundlers = (title, variationNames, assertions, testFn = test) => {
variationNames.forEach((name) => {
Expand Down

1 comment on commit 9442aaf

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

⏱ Benchmark results

largeDepsEsbuild: 11.1s

largeDepsZisi: 59s

Please sign in to comment.