forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
tests/cases/fourslash/server/nodeNextModuleKindCaching1.ts
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,35 @@ | ||
/// <reference path="../fourslash.ts"/> | ||
|
||
// @Filename: tsconfig.json | ||
////{ | ||
//// "compilerOptions": { | ||
//// "rootDir": "src", | ||
//// "outDir": "dist", | ||
//// "target": "ES2020", | ||
//// "module": "NodeNext", | ||
//// "strict": true | ||
//// }, | ||
//// "include": ["src\\**\\*.ts"] | ||
////} | ||
|
||
// @Filename: package.json | ||
////{ | ||
//// "type": "module", | ||
//// "private": true | ||
////} | ||
|
||
// @Filename: src/index.ts | ||
////// The line below should show a "Relative import paths need explicit file | ||
////// extensions..." error in VS Code, but it doesn't. The error is only picked up | ||
////// by `tsc` which seems to properly infer the module type. | ||
////import { helloWorld } from './example' | ||
/////**/ | ||
////helloWorld() | ||
|
||
// @Filename: src/example.ts | ||
////export function helloWorld() { | ||
//// console.log('Hello, world!') | ||
////} | ||
|
||
goTo.marker(); | ||
verify.numberOfErrorsInCurrentFile(1); |