Skip to content

Commit

Permalink
Add test for microsoft#47806
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Feb 9, 2022
1 parent 7997a62 commit f615b78
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/cases/fourslash/server/nodeNextModuleKindCaching1.ts
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);

0 comments on commit f615b78

Please sign in to comment.