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

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

Version Info

Tagged at
2 months ago