Skip to content

Commit 5c80d53

Browse files
committed
fix tests for to code ranges
1 parent eca4416 commit 5c80d53

38 files changed

+327
-1324
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// 2683 - NoImplicitThis: 'this' implicitly has type 'any'.
2+
function noImplicitThisTS2683() {
3+
console.log(this.value); // Error 2683
4+
}
5+
6+
// 2531 - StrictNullChecks: Object is possibly 'null'.
7+
const strictNullChecksTS2531: string = null;
8+
9+
// 2307 - Cannot find module.
10+
import { nonExistentModule } from './non-existent';
11+
12+
// 2349 - Cannot call a value that is not callable.
13+
const notCallable = 42;
14+
notCallable();

e2e/plugin-typescript-e2e/mocks/fixtures/default-setup/src/strict-errors.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

e2e/plugin-typescript-e2e/mocks/fixtures/default-setup/src/syntax-errors.ts

Whitespace-only changes.

e2e/plugin-typescript-e2e/mocks/fixtures/default-setup/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"compilerOptions": {
33
"rootDir": "./src",
44
"target": "ES6",
5-
"module": "CommonJS"
5+
"module": "CommonJS",
6+
"strict": true,
7+
"verbatimModuleSyntax": false
68
},
79
"include": ["src/**/*.ts"],
810
}

0 commit comments

Comments
 (0)