Skip to content

Commit

Permalink
Debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
macmv committed Sep 16, 2024
1 parent a83fa90 commit a76a718
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integ/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ describe("fauna schema staged commands", () => {
it("fauna schema push --stage --force works", async () => {
const secret = await newDB();

console.log("[0]");
await shellOk(
"fauna schema push --dir test/integ/schema/start --force",
secret
);

console.log("[1]");
expect(
await evalOk("Collection.all().map(.name).toArray()", secret)
).to.deep.equal(["User"]);

console.log("[2]");
await shellOk(
"fauna schema push --dir test/integ/schema/staged_index --force --stage",
secret
);

// Index should be in the FQL definition.
console.log("[3]");
expect(
await evalOk("Collection.byName('User')!.indexes.byName", secret)
).to.deep.equal({
Expand All @@ -39,6 +43,7 @@ describe("fauna schema staged commands", () => {
});

// But, the index should not be visible on the companion object.
console.log("[4]");
expect(
await evalOk(
stripMargin(
Expand Down

0 comments on commit a76a718

Please sign in to comment.