Skip to content

Commit

Permalink
chore(@turbo/utils): update tests/fixtures to use tasks key (#8225)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulkar authored May 29, 2024
1 parent ac50e35 commit 75abd54
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {
"tasks": {
"build": {
"outputs": [".next/**", "!.next/cache/**"]
},
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"env": ["ENV_2"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"extends": ["//"],
"pipeline": {
"tasks": {
"build": {
"env": ["IS_SERVER"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
// invalid config - missing extends
"pipeline": {
"tasks": {
"build": {
"env": ["IS_SERVER"]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://turbo.build/schema.json",
"globalEnv": ["CI"],
"pipeline": {
"tasks": {
"build": {
"env": ["ENV_1"]
}
Expand Down
10 changes: 5 additions & 5 deletions packages/turbo-utils/__tests__/getTurboConfigs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("getTurboConfigs", () => {
"UNORDERED",
"CI",
],
"pipeline": Object {
"tasks": Object {
"build": Object {
"dependsOn": Array [
"^build",
Expand Down Expand Up @@ -66,7 +66,7 @@ describe("getTurboConfigs", () => {
"globalEnv": Array [
"CI",
],
"pipeline": Object {
"tasks": Object {
"build": Object {
"env": Array [
"ENV_1",
Expand All @@ -82,7 +82,7 @@ describe("getTurboConfigs", () => {
"extends": Array [
"//",
],
"pipeline": Object {
"tasks": Object {
"build": Object {
"env": Array [
"ENV_2",
Expand All @@ -99,7 +99,7 @@ describe("getTurboConfigs", () => {
"extends": Array [
"//",
],
"pipeline": Object {
"tasks": Object {
"build": Object {
"env": Array [
"IS_SERVER",
Expand All @@ -122,7 +122,7 @@ describe("getTurboConfigs", () => {
"globalDependencies": Array [
"**/.env.*local",
],
"pipeline": Object {
"tasks": Object {
"build": Object {
"outputs": Array [
".next/**",
Expand Down

0 comments on commit 75abd54

Please sign in to comment.