From 9953e8f3cb20d96cbd4a5f9d16752913535a9abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Kiss?= Date: Wed, 16 Jun 2021 20:20:19 +0200 Subject: [PATCH] feat: Node 16 support (#92) BREAKING CHANGE: required Node 12+ --- .github/workflows/nodejs.yml | 2 +- .nvmrc | 2 +- spec/jasmine-ts.spec.ts | 2 +- tsconfig.json | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 01b3768..6bc2987 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - node-version: [12, 14, 15] + node-version: [12, 14, 16] steps: - uses: actions/checkout@v2 diff --git a/.nvmrc b/.nvmrc index e92ffbc..d9a8a35 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -15.13.0 +16.3.0 diff --git a/spec/jasmine-ts.spec.ts b/spec/jasmine-ts.spec.ts index eb4aaac..8a9e2a6 100644 --- a/spec/jasmine-ts.spec.ts +++ b/spec/jasmine-ts.spec.ts @@ -79,7 +79,7 @@ describe("jasmine-ts", () => { it('should work with --compiler-options', async () => { const cwd = path.join(__dirname, 'test-cases', 'project') - const result = await testJasmine(['--compiler-options="{\\"allowJs\\":true, \\"checkJs\\":false}"', 'index.spec.ts'], cwd); + const result = await testJasmine(['--compiler-options="{\\"allowJs\\":true, \\"checkJs\\":false, \\"esModuleInterop\\":false}"', 'index.spec.ts'], cwd); expect(result.exitCode).toBe(0) expect(result.output).toContain('1 spec, 0 failures') }) diff --git a/tsconfig.json b/tsconfig.json index 560dc8e..6e79444 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "strict": true, "sourceMap": true, "inlineSources": true, + "esModuleInterop": true, "outDir": "lib" }, "files": [