[TECH] use @swc/jest to transpile module in Jest
## Information

To prepare the workspace to be full esm compliant we need to use @swc/jest to run jest with native esm module and commonjs module.

## Acceptance criteria

- [x] All test pass on the CI
