forked from dsherret/ts-morph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
196,055 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"binaries": [ | ||
{ | ||
"path": "https://bvm.land/deno/1.8.0.json", | ||
"checksum": "9a25bbee6ac0f588c47cec372e58acedbf48fc0d6141884c1a81dadf230e6ecf", | ||
"version": "1.8.0" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ jobs: | |
with: | ||
node-version: '10' | ||
check-latest: true | ||
- uses: bvm/[email protected] | ||
- name: Build | ||
run: | | ||
yarn install | ||
|
@@ -22,6 +23,8 @@ jobs: | |
run: | | ||
npx lerna run test:ci | ||
npx lerna run test:ts-versions | ||
- name: Deno Test | ||
run: deno test --allow-read --unstable deno | ||
- name: Code Verification | ||
run: | | ||
npx lerna run code-verification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
import { Project } from "./mod.ts"; | ||
|
||
// todo: Eventually all tests run for the node package should also be run for Deno | ||
Deno.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`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts"; | ||
import { createProjectSync } from "./mod.ts"; | ||
|
||
// todo: Eventually all tests run for the node package should also be run for Deno | ||
Deno.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}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// @deno-types="./ts_morph_bootstrap.d.ts" | ||
export * from "./ts_morph_bootstrap.js"; |
Oops, something went wrong.