Skip to main content
Module

x/ts_morph/bootstrap/basic_test.ts

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
File
import { assertEquals } from "https://deno.land/std@0.89.0/testing/asserts.ts";import { createProjectSync } from "./mod.ts";
// todo: Eventually all tests run for the node package should also be run for DenoDeno.test("bootstrap general tests", () => { const project = createProjectSync({ useInMemoryFileSystem: true }); const sourceFile = project.createSourceFile("test.ts", "class T {\n}\n"); assertEquals(sourceFile.statements[0].getText(), `class T {\n}`);});