deno.land / x / ts_morph@22.0.0 / basic_test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import { assertEquals } from "https://deno.land/std@0.208.0/testing/asserts.ts";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`);});
ts_morph

Version Info

Tagged at
a month ago