diff --git a/test/nearleyc.test.js b/test/nearleyc.test.js
index <HASH>..<HASH> 100644
--- a/test/nearleyc.test.js
+++ b/test/nearleyc.test.js
@@ -65,7 +65,7 @@ describe("bin/nearleyc", function() {
         expect(stderr).toBe("");
         expect(stdout).toBe("");
         sh(`tsc ${outPath}.ts`);
-        const grammar = nearley.Grammar.fromCompiled(require(`./${outPath}.js`));
+        const grammar = nearley.Grammar.fromCompiled(require(`./${outPath}.js`).default);
         expect(parse(grammar, "<123>")).toEqual([ [ '<', '123', '>' ] ]);
     });
Update Tests to handle default export from TypeScript