Skip to content

Commit

Permalink
Update tests/cases/conformance/node/nodeModulesTripleSlashReferenceMo…
Browse files Browse the repository at this point in the history
…deOverride3.ts

Co-authored-by: Nathan Shively-Sanders <[email protected]>
  • Loading branch information
weswigham and sandersn committed Feb 15, 2022
1 parent ffe16a4 commit f919c2a
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
foo;
~~~
!!! error TS2304: Cannot find name 'foo'.
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
export {};
==== /node_modules/pkg/package.json (0 errors) ====
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ declare global {
//// [index.ts]
/// <reference types="pkg" resolution-mode="require" />
foo;
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
export {};

//// [index.js]
/// <reference types="pkg" resolution-mode="require" />
foo;
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
export {};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== /index.ts ===
/// <reference types="pkg" resolution-mode="require" />
foo;
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
>bar : Symbol(bar, Decl(require.d.ts, 2, 7))

export {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
foo;
>foo : any

bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
>bar : number

export {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
foo;
~~~
!!! error TS2304: Cannot find name 'foo'.
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
export {};
==== /node_modules/pkg/package.json (0 errors) ====
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ declare global {
//// [index.ts]
/// <reference types="pkg" resolution-mode="require" />
foo;
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
export {};

//// [index.js]
/// <reference types="pkg" resolution-mode="require" />
foo;
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
export {};
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=== /index.ts ===
/// <reference types="pkg" resolution-mode="require" />
foo;
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
>bar : Symbol(bar, Decl(require.d.ts, 2, 7))

export {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
foo;
>foo : any

bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
>bar : number

export {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ declare global {
// @filename: /index.ts
/// <reference types="pkg" resolution-mode="require" />
foo;
bar; // bar should resolve while foo should not, since even though index.js is esm, the refernce is cjs
bar; // bar should resolve while foo should not, since even though index.js is esm, the reference is cjs
export {};

0 comments on commit f919c2a

Please sign in to comment.