Ghost/ghost/data-generator
Simon Backx 52566dc1e0 Wrapped data generator data creation in transaction function
ref PROD-233

Errors were not handled properly because of a missing rollback and try/catch.

Using a function is easier generally.

Also added ignored contraint checks to increase performance a tiny bit.
They ended up not mattering much, so we can consider to remove them again.
2023-12-14 18:30:45 +01:00
..
lib Wrapped data generator data creation in transaction function 2023-12-14 18:30:45 +01:00
test Entirely rewrote data generator to simplify codebase 2023-08-04 13:36:09 +01:00
.eslintrc.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
index.js Entirely rewrote data generator to simplify codebase 2023-08-04 13:36:09 +01:00
package.json Deduplicated batch insertion code 2023-12-07 14:44:00 +01:00
README.md Added command to generate demo data (#15691) 2022-10-26 17:55:08 +01:00

Data Generator

Generate fake data for testing Ghost

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests