/testdata-kun

Primary LanguageTypeScriptMIT LicenseMIT

Test Data-kun

Your friendly neighborhood Test Data generator

Chat Participant

For example, if you have the following types,

type Address = {
  street: string;
  city: string;
  zipCode: string;
};

type Person = {
  name: string;
  age: number;
  address: Address;
};

You can call @testdata-kun from with the type information. testdata-kun will give you the dummy data that corresponds with the type declaration! It even asks for other necessary type information for a more accurate data generation.

alt text

Dynamic type generation command

alt text Just highlight the type variable, and activate Generate dummy data from the command pallete. alt text And voila! Dummy data will be added to your clipboard automaticaly

const data: Person = {
  name: "John Doe",
  age: 25,
  address: {
    street: "123 Main Street",
    city: "New York",
    zipCode: "10001",
  },
};