1.3.10 • Published 4 months ago

@stickyjs/turbo-jest v1.3.10

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

Turbo Jest

@stickyjs/turbo-jest

Turbo aware jest-preset; automatically run dependsOn script before running jest. By taking advantage of content-aware hashing from turborepo. dependsOn only run if the pipeline inputs have changed.

When you run your test with @stickyjs/turbo-jest preset, it uses displayName from your jest config to figure out which pipeline to use. It will automatically pinpoint the corresponding dependsOn and run all the scripts specified within.

E.g. turbo.json and package.json:

{
  "pipeline": {
    "test:e2e": {
      "inputs": ["src/**", "**/*.e2e.ts"],
      "dependsOn": ["build:docker"]
    }
  }
}
{
  "scripts": {
    "build:docker": "docker build ..."
  },
  "jest": {
    "preset": "@stickyjs/turbo-jest",
    "projects": [
      {
        "displayName": "test:e2e",
        "preset": "@stickyjs/turbo-jest",
        "testRegex": ".*\\.e2e\\.ts$"
      }
    ]
  }
}
1.3.10

4 months ago

1.3.9

4 months ago

1.3.8

4 months ago

1.3.7

5 months ago

1.3.6

5 months ago

1.3.5

5 months ago

1.2.0

11 months ago

1.2.8

9 months ago

1.2.7

9 months ago

1.2.6

9 months ago

1.3.4

8 months ago

1.2.5

9 months ago

1.3.3

8 months ago

1.2.4

10 months ago

1.3.2

9 months ago

1.2.3

10 months ago

1.3.1

9 months ago

1.2.2

10 months ago

1.2.1

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago