Skip to content

Provides utility functions for running unstable tests multiple times.

License

Notifications You must be signed in to change notification settings

ayame113/flaky_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flaky_test

Provides utility functions for running unstable tests multiple times. Inspired by https://github.com/denoland/flaky_test .

https://deno.land/x/flaky_test

import { flakyTest } from "https://deno.land/x/flaky_test@{$VERSION}/mod.ts";

Deno.test({
  name: "overload_1",
  fn: flakyTest(() => {
    // some test code
  }),
});

Deno.test(
  "overload_2",
  flakyTest(() => {
    // some test code
  }),
);

Deno.test(flakyTest(function overload_3() {
  // some test code
}));

Deno.test(
  "overload_4",
  {},
  flakyTest(() => {
    // some test code
  }),
);

Deno.test(
  { name: "overload_5" },
  flakyTest(() => {
    // some test code
  }),
);

Deno.test(
  {},
  flakyTest(function overload_6() {
    // some test code
  }),
);

About

Provides utility functions for running unstable tests multiple times.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published