Skip to content

Latest commit

 

History

History

common-tests

@events-helsinki/common-tests

build

Intro

One possible way to share common test amongst apps in the monorepo.

Usage

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",
      ],
    },
  },
}