@stickyjs/turbo-jest

1.3.10 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.10
1,146latest

Version History

VersionDownloads (Last 7 Days)Published
1.3.10
1,146
1.3.9
0
1.3.8
0
1.3.7
0
1.3.6
0
1.3.5
0
1.3.4
7,706
1.3.3
1
1.3.2
42
1.3.1
1
1.2.8
1
1.2.7
1
1.2.6
1
1.2.5
438
1.2.4
1
1.2.3
1
1.2.2
1
1.2.1
1
1.2.0
1
1.1.2
1
1.1.1
1
1.1.0
1
1.0.1
2
1.0.01

Package Sidebar

Install

npm i @stickyjs/turbo-jest

Weekly Downloads

723

Version

1.3.10

License

none

Unpacked Size

3.02 kB

Total Files

5

Last publish

Collaborators

  • levaintech-bot
  • fuxingloh