Skip to main content


TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
import { assertEquals } from "";import { Project } from "./mod.ts";
// todo: Eventually all tests run for the node package should also be run for DenoDeno.test("ts-morph basic tests", () => { const project = new Project({ useInMemoryFileSystem: true }); const sourceFile = project.createSourceFile("test.ts", "class T {\n}"); sourceFile.addClass({ name: "Other", }); assertEquals(sourceFile.getText(), `class T {\n}\n\nclass Other {\n}\n`);});