From 75abd54d1b48d7b98eb7738e49a873347df915ea Mon Sep 17 00:00:00 2001 From: Mehul Kar Date: Tue, 28 May 2024 20:21:45 -0500 Subject: [PATCH] chore(@turbo/utils): update tests/fixtures to use tasks key (#8225) --- .../common/old-workspace-config/turbo.json | 2 +- .../__fixtures__/common/single-package/turbo.json | 2 +- .../common/workspace-configs/apps/web/turbo.json | 2 +- .../common/workspace-configs/packages/ui/turbo.json | 2 +- .../common/workspace-configs/packages/utils/turbo.json | 2 +- .../__fixtures__/common/workspace-configs/turbo.json | 2 +- packages/turbo-utils/__tests__/getTurboConfigs.test.ts | 10 +++++----- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/turbo-utils/__fixtures__/common/old-workspace-config/turbo.json b/packages/turbo-utils/__fixtures__/common/old-workspace-config/turbo.json index d44dedb04af780..2e645e4810e472 100644 --- a/packages/turbo-utils/__fixtures__/common/old-workspace-config/turbo.json +++ b/packages/turbo-utils/__fixtures__/common/old-workspace-config/turbo.json @@ -1,7 +1,7 @@ { "$schema": "https://turbo.build/schema.json", "globalDependencies": ["**/.env.*local"], - "pipeline": { + "tasks": { "build": { "outputs": [".next/**", "!.next/cache/**"] }, diff --git a/packages/turbo-utils/__fixtures__/common/single-package/turbo.json b/packages/turbo-utils/__fixtures__/common/single-package/turbo.json index 8079eb24634da0..ef677c3a7298f2 100644 --- a/packages/turbo-utils/__fixtures__/common/single-package/turbo.json +++ b/packages/turbo-utils/__fixtures__/common/single-package/turbo.json @@ -1,7 +1,7 @@ { "$schema": "https://turbo.build/schema.json", "globalEnv": ["UNORDERED", "CI"], - "pipeline": { + "tasks": { "build": { // A workspace's `build` task depends on that workspace's // topological dependencies' and devDependencies' diff --git a/packages/turbo-utils/__fixtures__/common/workspace-configs/apps/web/turbo.json b/packages/turbo-utils/__fixtures__/common/workspace-configs/apps/web/turbo.json index 0d1b80f43964c1..f024dd2535d73e 100644 --- a/packages/turbo-utils/__fixtures__/common/workspace-configs/apps/web/turbo.json +++ b/packages/turbo-utils/__fixtures__/common/workspace-configs/apps/web/turbo.json @@ -1,7 +1,7 @@ { "$schema": "https://turbo.build/schema.json", "extends": ["//"], - "pipeline": { + "tasks": { "build": { "env": ["ENV_2"] } diff --git a/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/ui/turbo.json b/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/ui/turbo.json index 8bff09ede4657e..08163b5fa36532 100644 --- a/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/ui/turbo.json +++ b/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/ui/turbo.json @@ -1,7 +1,7 @@ { "$schema": "https://turbo.build/schema.json", "extends": ["//"], - "pipeline": { + "tasks": { "build": { "env": ["IS_SERVER"] } diff --git a/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/utils/turbo.json b/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/utils/turbo.json index fcb2aa74fe9297..6774a20048a10a 100644 --- a/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/utils/turbo.json +++ b/packages/turbo-utils/__fixtures__/common/workspace-configs/packages/utils/turbo.json @@ -1,7 +1,7 @@ { "$schema": "https://turbo.build/schema.json", // invalid config - missing extends - "pipeline": { + "tasks": { "build": { "env": ["IS_SERVER"] } diff --git a/packages/turbo-utils/__fixtures__/common/workspace-configs/turbo.json b/packages/turbo-utils/__fixtures__/common/workspace-configs/turbo.json index cb4fb203398fa6..e985aa64412606 100644 --- a/packages/turbo-utils/__fixtures__/common/workspace-configs/turbo.json +++ b/packages/turbo-utils/__fixtures__/common/workspace-configs/turbo.json @@ -1,7 +1,7 @@ { "$schema": "https://turbo.build/schema.json", "globalEnv": ["CI"], - "pipeline": { + "tasks": { "build": { "env": ["ENV_1"] } diff --git a/packages/turbo-utils/__tests__/getTurboConfigs.test.ts b/packages/turbo-utils/__tests__/getTurboConfigs.test.ts index c8506886c3fdfe..27b0e458e69174 100644 --- a/packages/turbo-utils/__tests__/getTurboConfigs.test.ts +++ b/packages/turbo-utils/__tests__/getTurboConfigs.test.ts @@ -20,7 +20,7 @@ describe("getTurboConfigs", () => { "UNORDERED", "CI", ], - "pipeline": Object { + "tasks": Object { "build": Object { "dependsOn": Array [ "^build", @@ -66,7 +66,7 @@ describe("getTurboConfigs", () => { "globalEnv": Array [ "CI", ], - "pipeline": Object { + "tasks": Object { "build": Object { "env": Array [ "ENV_1", @@ -82,7 +82,7 @@ describe("getTurboConfigs", () => { "extends": Array [ "//", ], - "pipeline": Object { + "tasks": Object { "build": Object { "env": Array [ "ENV_2", @@ -99,7 +99,7 @@ describe("getTurboConfigs", () => { "extends": Array [ "//", ], - "pipeline": Object { + "tasks": Object { "build": Object { "env": Array [ "IS_SERVER", @@ -122,7 +122,7 @@ describe("getTurboConfigs", () => { "globalDependencies": Array [ "**/.env.*local", ], - "pipeline": Object { + "tasks": Object { "build": Object { "outputs": Array [ ".next/**",