i’m using same configuration like yours but it only work when i downgrade to ts-node@9,
and then i tried this option in my .mocharc.json
and now it’s working as i expected
{
"extensions": ["ts"],
"spec": ["**/*.spec.*"],
"node-option": [
"experimental-specifier-resolution=node",
"loader=ts-node/esm"
]
}