One possible way to share common test amongst apps in the monorepo.
Add the workspace dependency to the consuming app or package.
yarn add @events-helsinki/common-tests:"workspace:^"
Add an alias in tsconfig.js to enable fast-refresh.
{
"compilerOptions": {
"paths": {
"@events-helsinki/common-tests": [
"../../../packages/common-tests/src/index",
],
"@events-helsinki/common-tests/browser-tests": [
"../../../packages/common-tests/browser-tests/index",
],
},
},
}