Skip to content

Commit

Permalink
chore(ci): fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Oct 30, 2021
1 parent bf377b6 commit 03aad63
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on: [push, pull_request]

jobs:
build:
name: test ubuntu-16.04
runs-on: ubuntu-16.04
name: test ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
node-version: '16'
check-latest: true
- uses: bvm/[email protected]
- name: Build
run: |
npm install
npm ci
npm run bootstrap
npm run build
npx lerna run ensure-no-project-compile-errors
Expand Down
5 changes: 5 additions & 0 deletions deno/ts_morph.js
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,11 @@ class StraightReplacementNodeHandler {
}
handleNode(currentNode, newNode, newSourceFile) {
if (currentNode.getKind() !== newNode.kind) {
const kinds = [currentNode.getKind(), newNode.kind];
if (kinds.includes(ts.SyntaxKind.Identifier) && kinds.includes(ts.SyntaxKind.PrivateIdentifier)) {
currentNode.forget();
return;
}
throw new errors.InvalidOperationError(`Error replacing tree! Perhaps a syntax error was inserted `
+ `(Current: ${currentNode.getKindName()} -- New: ${getSyntaxKindName(newNode.kind)}).`);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-morph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "cross-env TS_NODE_COMPILER=\"ttypescript\" TS_NODE_TRANSPILE_ONLY=\"true\" mocha",
"test:debug": "npm run test --inspect-brk",
"test:watch": "npm run test --watch-extensions ts --watch",
"test:ci": "npm run run test",
"test:ci": "npm run test",
"test:ts-versions": "ts-node --transpile-only scripts/test/testTypeScriptVersions",
"test:coverage": "cross-env TS_NODE_COMPILER=\"ttypescript\" TS_NODE_TRANSPILE_ONLY=\"true\" nyc --reporter=lcov mocha",
"test:performance": "npm run build && node ./dist/tests/performance/run.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-morph/src/tests/issues/1198tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from "chai";
import { Project } from "../../Project";

describe.only("tests for issue #1198", () => {
describe("tests for issue #1198", () => {
it("should not have issues when renaming private identifier", () => {
const project = new Project({ useInMemoryFileSystem: true });
const sourceFile = project.createSourceFile("mod.ts", `class Foo {
Expand Down

0 comments on commit 03aad63

Please sign in to comment.