Skip to content

refactor(test): remove tap from db-authorization tests#1814

Merged
mcollina merged 6 commits intoplatformatic:mainfrom
mateonunez:chore/migrate-db-authorization-tests
Nov 20, 2023
Merged

refactor(test): remove tap from db-authorization tests#1814
mcollina merged 6 commits intoplatformatic:mainfrom
mateonunez:chore/migrate-db-authorization-tests

Conversation

@mateonunez
Copy link
Contributor

This PR follows the #1796 by migrating tests from tap to node:test.

Currently Node runs all tests in parallel and this can generate concurrency problems with the external database to run the test operations. To avoid this I implemented a runner file that retrieves all the tests and runs them one at a time. It will be possible to remove the runner when nodejs/node#49996 is released in Node v18 and v20.

Migrated test

  • admin.test.js
  • code-permissions.test.js
  • fields-permissions.test.js
  • find-rule.test.js
  • jwt-webhook.test.js
  • jwt.test.js
  • multi-role.test.js
  • nested.test.js
  • set-from-code.test.js
  • simple-rest.test.js
  • simple-subscription.test.js
  • simple.test.js
  • skip-authorization.test.js
  • utils.test.js
  • validation.test.js
  • webhook.test.js

@mcollina mcollina merged commit 7c9efa8 into platformatic:main Nov 20, 2023
@mateonunez mateonunez deleted the chore/migrate-db-authorization-tests branch November 20, 2023 15:40
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.

2 participants