Skip to content

Commit

Permalink
Fix live reloading tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Sep 8, 2022
1 parent 5ce0a77 commit 734bad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/admin-ui-tests/live-reloading.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ test('the generated schema includes schema updates', async () => {

test("a syntax error is shown and doesn't crash the process", async () => {
await replaceSchema('syntax-error');
await expectContentInStdio(process, 'error - ../../schemas/syntax-error.js');
await expectContentInStdio(process, '✘ [ERROR] Expected ";" but found "const"');
});

test("a runtime error is shown and doesn't crash the process", async () => {
Expand Down
3 changes: 2 additions & 1 deletion tests/test-projects/live-reloading/schemas/runtime-error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-ignore
doesNotExist();

export {};
export const lists = {};
export const extendGraphqlSchema = {};

0 comments on commit 734bad1

Please sign in to comment.