Skip to content

Commit

Permalink
test(mockFactory): generate workers that are linked to a generated de…
Browse files Browse the repository at this point in the history
…vice
  • Loading branch information
na-ji committed May 8, 2024
1 parent bf5c3c5 commit c091785
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/src/app/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ export const makeServer = ({ environment = 'test' } = {}) => {
},

seeds(server) {
server.createList('device', 10);
server.createList('worker', 50);
server.createList('device', 10).forEach((device) => {
server.createList('worker', 5, { deviceId: device.deviceId });
});
},

factories: {
Expand Down

0 comments on commit c091785

Please sign in to comment.