Skip to content

Dictionary Migration - Integration tests#202

Open
leoraba wants to merge 8 commits into
feat/retry_failed_migrationsfrom
feat/interation-test-migration
Open

Dictionary Migration - Integration tests#202
leoraba wants to merge 8 commits into
feat/retry_failed_migrationsfrom
feat/interation-test-migration

Conversation

@leoraba
Copy link
Copy Markdown
Contributor

@leoraba leoraba commented May 4, 2026

Description

This PR form parts of a series of PRs to implement Dictionary migration

Details

  • Fix an issue running the integration test, tests have been broken since the implementation of the worker threads.
  • Adding integration tests to cover Dictionary registration endpoint on a new category
  • Adding integration tests to cover Dictionary registration endpoint on an existing category trigger Data Migration.

Issue:

This PR depends on:

@leoraba leoraba marked this pull request as draft May 4, 2026 18:53

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));

const waitForSubmissionToStopValidating = async ({
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

submission is being validated in a worker thread, which we can't control when it finished validating, adding this function to "wait" until the validation process completes

Comment on lines +11 to +16
/**
* Resolves the appropriate worker file to use.
* For compiled/transpiled environments use .js, integration tests use .ts files directly, so the tsx loader
* is required for process workers to execute TypeScript files.
*/
const getWorkerPoolConfig = () => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function fix running the integration tests, added a tsdoc with the explanation

@leoraba leoraba marked this pull request as ready for review June 2, 2026 18:15
@leoraba leoraba requested review from JamesTLopez and joneubank June 2, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant