npm run test:e2e --testNamePattern="should return created task data" test/project/ws-backlog-page/ws-task.e2e-spec.ts

쓰기 잠금 거는 방법

const duplicates = await manager.find(Epic, {
        where: { projectId: epic.projectId, rankValue: epic.rankValue },
        lock: { mode: 'pessimistic_write' },
        order: { rankValue: 'ASC' },
      });
    query: SELECT `Epic`.`id` AS `Epic_id`, `Epic`.`project_id` AS `Epic_project_id`, `Epic`.`name` AS `Epic_name`, `Epic`.`color` AS `Epic_color`, `Epic`.`created_at` AS `Epic_created_at`, `Epic`.`updated_at` AS `Epic_updated_at`, `Epic`.`rank_value` AS `Epic_rank_value` FROM `epic` `Epic` WHERE ((`Epic`.`rank_value` = ?)) ORDER BY `Epic`.`rank_value` ASC FOR UPDATE -- PARAMETERS: ["0|hzzzzz:"]

문제