Skip to content

Commit 81b7356

Browse files
committed
build without yaml step setup
Signed-off-by: shmck <[email protected]>
1 parent ef2932d commit 81b7356

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/schema/skeleton.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default {
171171
],
172172
},
173173
},
174-
required: ["id", "setup"],
174+
required: ["id"],
175175
},
176176
},
177177
},

tests/skeleton.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ describe("validate skeleton", () => {
217217
const valid = validateSkeleton(json);
218218
expect(valid).toBe(false);
219219
});
220-
it("should fail if step setup is missing", () => {
220+
it("should not fail if step setup is missing", () => {
221221
const step1 = { ...validJson.levels[0].steps[0], setup: undefined };
222222
const level1 = { ...validJson.levels[0], steps: [step1] };
223223
const json = {
@@ -226,7 +226,7 @@ describe("validate skeleton", () => {
226226
};
227227

228228
const valid = validateSkeleton(json);
229-
expect(valid).toBe(false);
229+
expect(valid).toBe(true);
230230
});
231231
it("should fail if step setup is invalid", () => {
232232
const step1 = {

0 commit comments

Comments
 (0)